ports/143134: [PATCH] sysutils/symlinks Update to 1.4

Rob Farmer rfarmer at predatorlabs.net
Sat Jan 23 19:00:09 UTC 2010


>Number:         143134
>Category:       ports
>Synopsis:       [PATCH] sysutils/symlinks Update to 1.4
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 23 19:00:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Rob Farmer
>Release:        9.0-CURRENT
>Organization:
>Environment:
FreeBSD pentium4.predatorlabs.net 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r202659: Tue Jan 19 16:02:39 PST 2010     rfarmer at pentium4.predatorlabs.net:/obj/usr/src/sys/PENTIUM4  i386
>Description:
Update to 1.4
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN symlinks.old/Makefile symlinks/Makefile
--- symlinks.old/Makefile	2010-01-23 09:55:28.000000000 -0800
+++ symlinks/Makefile	2010-01-23 09:56:43.000000000 -0800
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=		symlinks
-PORTVERSION=		1.2
+PORTVERSION=		1.4
 CATEGORIES=		sysutils
 MASTER_SITES=		${MASTER_SITE_SUNSITE}
 MASTER_SITE_SUBDIR=	utils/file
diff -ruN symlinks.old/distinfo symlinks/distinfo
--- symlinks.old/distinfo	2010-01-23 09:55:28.000000000 -0800
+++ symlinks/distinfo	2010-01-23 09:56:47.000000000 -0800
@@ -1,3 +1,3 @@
-MD5 (symlinks-1.2.tar.gz) = b4bab0a5140e977c020d96e7811cec61
-SHA256 (symlinks-1.2.tar.gz) = 03b241220a58c2ba7d53bd441601de43f1b3e2e95349caf74c8f856da9067b93
-SIZE (symlinks-1.2.tar.gz) = 4650
+MD5 (symlinks-1.4.tar.gz) = c38ef760574c25c8a06fd2b5b141307d
+SHA256 (symlinks-1.4.tar.gz) = b0bb689dd0a2c46d9a7dd111b053707aba7b9cf29c4f0bad32984b14bdbe0399
+SIZE (symlinks-1.4.tar.gz) = 4942
diff -ruN symlinks.old/files/patch-aa symlinks/files/patch-aa
--- symlinks.old/files/patch-aa	2010-01-23 09:55:28.000000000 -0800
+++ symlinks/files/patch-aa	2010-01-23 10:00:02.000000000 -0800
@@ -1,26 +1,17 @@
---- symlinks.c.orig	Tue Oct 15 21:02:57 1996
-+++ symlinks.c	Sat May 27 09:34:00 2000
-@@ -1,9 +1,6 @@
+--- symlinks.c.orig	2010-01-23 09:58:35.000000000 -0800
++++ symlinks.c	2010-01-23 09:59:34.000000000 -0800
+@@ -1,10 +1,6 @@
  #include <unistd.h>
 -#ifndef _POSIX_SOURCE
 -#define _POSIX_SOURCE
 -#endif
  #include <stdio.h>
+ #include <stdlib.h>
 -#include <malloc.h>
-+#include <stdlib.h>
  #include <string.h>
  #include <fcntl.h>
  #include <sys/param.h>
-@@ -294,7 +291,7 @@
- 	exit(1);
- }
- 
--void main(int argc, char **argv)
-+int main(int argc, char **argv)
- {
- 	static char path[PATH_MAX+2], cwd[PATH_MAX+2];
- 	int dircount = 0;
-@@ -342,5 +339,5 @@
+@@ -358,5 +354,5 @@
  	}
  	if (dircount == 0)
  		usage_error();
diff -ruN symlinks.old/files/patch-ab symlinks/files/patch-ab
--- symlinks.old/files/patch-ab	2010-01-23 09:55:28.000000000 -0800
+++ symlinks/files/patch-ab	2010-01-23 10:07:37.000000000 -0800
@@ -1,9 +1,9 @@
---- Makefile.orig	Sat May 27 12:26:39 2000
-+++ Makefile	Sat May 27 12:38:59 2000
-@@ -1,13 +1,29 @@
+--- Makefile.orig	2010-01-23 10:06:57.000000000 -0800
++++ Makefile	2010-01-23 10:06:43.000000000 -0800
+@@ -1,15 +1,29 @@
  # Makefile for symlinks
-- 
-+
+ 
+-CC = gcc
 +CC?=		cc
 +CFLAGS?=	-pipe -O
 +COPY?=		-c
@@ -18,19 +18,19 @@
 +INSTALL_PROGRAM?= \
 +	${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
 +INSTALL_MAN?= \
-+	${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}             
-+
++	${INSTALL} ${COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
+  
  all: symlinks
  
  symlinks: symlinks.c
--	gcc -Wall -Wstrict-prototypes -O2 -N -s -o symlinks symlinks.c
+-	$(CC) -Wall -Wstrict-prototypes -O2 ${CFLAGS} -o symlinks symlinks.c
 +	$(CC) $(CFLAGS) -o symlinks symlinks.c
   
  install: all symlinks.8
 -	install -m 755 -o root -g root symlinks /usr/local/bin
 -	install -m 644 -o root -g root symlinks.8 /usr/local/man/man8
 +	@ ${INSTALL_PROGRAM} symlinks $(PREFIX)/bin
-+	@ ${INSTALL_MAN} symlinks.8 $(PREFIX)/man/man8
++	@ ${INSTALL_MAN} symlinks.8 $(PREFIX)/man/man8	
  
  clean:
 -	rm -f symlinks *.o core


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list