aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/symlinks
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>2000-05-27 19:09:47 +0800
committerandreas <andreas@FreeBSD.org>2000-05-27 19:09:47 +0800
commit7555b154a2831b1ea3a00fa52d185254cc06238c (patch)
tree01a4b688eec923bacb3424ff9a904fe0c438595b /sysutils/symlinks
parent7977459c02bec546719731c1b6a8aee5fcff3514 (diff)
downloadfreebsd-ports-gnome-7555b154a2831b1ea3a00fa52d185254cc06238c.tar.gz
freebsd-ports-gnome-7555b154a2831b1ea3a00fa52d185254cc06238c.tar.zst
freebsd-ports-gnome-7555b154a2831b1ea3a00fa52d185254cc06238c.zip
New port symlinks
symlinks is a "Symbolic link maintenance utility" Scans directories for symbolic links, and identifies dangling, relative, absolute, messy, lengthy and other_fs links. Can optionally change absolute links to relative within a given filesystem. Recommended for use by anyone developing and/or maintaining a Linux distribution or CD-ROM.
Diffstat (limited to 'sysutils/symlinks')
-rw-r--r--sysutils/symlinks/Makefile18
-rw-r--r--sysutils/symlinks/distinfo1
-rw-r--r--sysutils/symlinks/files/patch-aa29
-rw-r--r--sysutils/symlinks/files/patch-ab37
-rw-r--r--sysutils/symlinks/pkg-comment1
-rw-r--r--sysutils/symlinks/pkg-descr5
-rw-r--r--sysutils/symlinks/pkg-plist1
7 files changed, 92 insertions, 0 deletions
diff --git a/sysutils/symlinks/Makefile b/sysutils/symlinks/Makefile
new file mode 100644
index 000000000000..a2c4003dc242
--- /dev/null
+++ b/sysutils/symlinks/Makefile
@@ -0,0 +1,18 @@
+# New ports collection makefile for: symlinks
+# Date created: Sa 27 Mai 2000 00:21:44 CEST
+# Whom: Andreas Klemm <andreas@klemm.gtn.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= symlinks
+PORTVERSION= 1.2
+CATEGORIES= sysutils
+MASTER_SITES= ${MASTER_SITE_SUNSITE}
+MASTER_SITE_SUBDIR= utils/file
+
+MAINTAINER= andreas@klemm.gtn.com
+
+MAN8= symlinks.8
+
+.include <bsd.port.mk>
diff --git a/sysutils/symlinks/distinfo b/sysutils/symlinks/distinfo
new file mode 100644
index 000000000000..eb463fb8bdaa
--- /dev/null
+++ b/sysutils/symlinks/distinfo
@@ -0,0 +1 @@
+MD5 (symlinks-1.2.tar.gz) = b4bab0a5140e977c020d96e7811cec61
diff --git a/sysutils/symlinks/files/patch-aa b/sysutils/symlinks/files/patch-aa
new file mode 100644
index 000000000000..5f9c5cb8282a
--- /dev/null
+++ b/sysutils/symlinks/files/patch-aa
@@ -0,0 +1,29 @@
+--- symlinks.c.orig Tue Oct 15 21:02:57 1996
++++ symlinks.c Sat May 27 09:34:00 2000
+@@ -1,9 +1,6 @@
+ #include <unistd.h>
+-#ifndef _POSIX_SOURCE
+-#define _POSIX_SOURCE
+-#endif
+ #include <stdio.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 @@
+ }
+ if (dircount == 0)
+ usage_error();
+- exit (0);
++ return (0);
+ }
diff --git a/sysutils/symlinks/files/patch-ab b/sysutils/symlinks/files/patch-ab
new file mode 100644
index 000000000000..0575cf547022
--- /dev/null
+++ b/sysutils/symlinks/files/patch-ab
@@ -0,0 +1,37 @@
+--- Makefile.orig Sat May 27 12:26:39 2000
++++ Makefile Sat May 27 12:38:59 2000
+@@ -1,13 +1,29 @@
+ # Makefile for symlinks
+-
++
++CC?= cc
++CFLAGS?= -pipe -O
++COPY?= -c
++STRIP?= -s
++BINOWN?= root
++BINGRP?= wheel
++BINMODE?= 555
++MANOWN?= root
++MANGRP?= wheel
++MANMODE?= 444
++
++INSTALL_PROGRAM?= \
++ ${INSTALL} ${COPY} ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE}
++INSTALL_MAN?= \
++ ${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) $(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
+
+ clean:
+- rm -f symlinks *.o core
++ @ rm -f symlinks *.o core
diff --git a/sysutils/symlinks/pkg-comment b/sysutils/symlinks/pkg-comment
new file mode 100644
index 000000000000..b1e8d3557104
--- /dev/null
+++ b/sysutils/symlinks/pkg-comment
@@ -0,0 +1 @@
+Symbolic link maintenance utility
diff --git a/sysutils/symlinks/pkg-descr b/sysutils/symlinks/pkg-descr
new file mode 100644
index 000000000000..57e0d88db5fd
--- /dev/null
+++ b/sysutils/symlinks/pkg-descr
@@ -0,0 +1,5 @@
+Scans directories for symbolic links, and identifies dangling,
+relative, absolute, messy, lengthy and other_fs links. Can optionally
+change absolute links to relative within a given filesystem.
+Recommended for use by anyone developing and/or maintaining a Linux
+distribution or CD-ROM.
diff --git a/sysutils/symlinks/pkg-plist b/sysutils/symlinks/pkg-plist
new file mode 100644
index 000000000000..eedeaf601bd4
--- /dev/null
+++ b/sysutils/symlinks/pkg-plist
@@ -0,0 +1 @@
+bin/symlinks