mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- Update to 1.4
PR: ports/143134 Submitted by: Rob Farmer <rfarmer@predatorlabs.net>
This commit is contained in:
parent
c3ef110793
commit
89dd62b9dd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=249720
4 changed files with 18 additions and 27 deletions
|
@ -6,7 +6,7 @@
|
|||
#
|
||||
|
||||
PORTNAME= symlinks
|
||||
PORTVERSION= 1.2
|
||||
PORTVERSION= 1.4
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
||||
MASTER_SITE_SUBDIR= utils/file
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue