1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/sysutils/symlinks/files/patch-ab
Andreas Klemm 691c30978d 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.
2000-05-27 11:09:47 +00:00

38 lines
914 B
Plaintext

--- 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