aboutsummaryrefslogtreecommitdiff
path: root/net/ifdepd
diff options
context:
space:
mode:
authorJean-Yves Lefort <jylefort@FreeBSD.org>2005-04-22 18:53:12 +0000
committerJean-Yves Lefort <jylefort@FreeBSD.org>2005-04-22 18:53:12 +0000
commite4db8fae1e1be9c4e2b5c7bdbf7010cdae33217c (patch)
tree6245c66e301c8600fbed1a4c34660b8457ce277a /net/ifdepd
parentb6be6b2cd93321c7a986065262e428fb91289e54 (diff)
downloadports-e4db8fae1e1be9c4e2b5c7bdbf7010cdae33217c.tar.gz
ports-e4db8fae1e1be9c4e2b5c7bdbf7010cdae33217c.zip
- Update to 20050420
- Cleanup the Makefile PR: ports/80243 Submitted by: Alexander Hausner <alex@hugo.bmg.gv.at> (maintainer) Approved by: adamw (mentor)
Notes
Notes: svn path=/head/; revision=133952
Diffstat (limited to 'net/ifdepd')
-rw-r--r--net/ifdepd/Makefile12
-rw-r--r--net/ifdepd/distinfo4
-rw-r--r--net/ifdepd/files/patch-Makefile36
3 files changed, 44 insertions, 8 deletions
diff --git a/net/ifdepd/Makefile b/net/ifdepd/Makefile
index 891e64364a9b..3b1179bc2979 100644
--- a/net/ifdepd/Makefile
+++ b/net/ifdepd/Makefile
@@ -4,25 +4,20 @@
# $FreeBSD$
PORTNAME= ifdepd
-PORTVERSION= 20050303
+PORTVERSION= 20050420
CATEGORIES= net
MASTER_SITES= http://alex.bmg.gv.at/programs/
MAINTAINER= alex@hugo.bmg.gv.at
COMMENT= Interface Dependancy daemon
-INSTALL_TARGET= install install-man
MAN8= ifdepd.8
-MANCOMPRESSED= no
PLIST_FILES= bin/ifdepd \
etc/rc.d/ifdepd.sh
USE_REINPLACE= yes
-PKGMESSAGE= pkg-message
-
USE_RC_SUBR= yes
-RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
.include <bsd.port.pre.mk>
@@ -30,6 +25,11 @@ RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
IGNORE= need link state change notification changes from May 2004
.endif
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|/etc/rc\.subr|${RC_SUBR}|; s|/usr/local|${PREFIX}|' \
+ ${WRKSRC}/ifdepd.sh
+
post-install:
@${CAT} ${PKGMESSAGE}
diff --git a/net/ifdepd/distinfo b/net/ifdepd/distinfo
index 27d564051820..9e338d5a8cce 100644
--- a/net/ifdepd/distinfo
+++ b/net/ifdepd/distinfo
@@ -1,2 +1,2 @@
-MD5 (ifdepd-20050303.tar.gz) = c4a8aaae4962796871072bce2a170765
-SIZE (ifdepd-20050303.tar.gz) = 6765
+MD5 (ifdepd-20050420.tar.gz) = 172caddd92da47e1165790b4eb16f9ec
+SIZE (ifdepd-20050420.tar.gz) = 6852
diff --git a/net/ifdepd/files/patch-Makefile b/net/ifdepd/files/patch-Makefile
new file mode 100644
index 000000000000..3440d0cc4214
--- /dev/null
+++ b/net/ifdepd/files/patch-Makefile
@@ -0,0 +1,36 @@
+--- Makefile.orig Wed Apr 20 15:30:18 2005
++++ Makefile Fri Apr 22 16:12:43 2005
+@@ -4,10 +4,8 @@
+ PROG = ifdepd
+ RM = rm -f
+ INSTALL = install
+-CFLAGS += -O2 -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual
+-.if ${OSTYPE}!="OpenBSD"
++CFLAGS += -Wall -Wnested-externs -Wpointer-arith -Winline -Wcast-qual
+ CFLAGS += -Wredundant-decls
+-.endif
+ MAN8 = ifdepd.8
+
+ OBJ = ifdepd.o
+@@ -22,18 +20,14 @@
+ ${RM} *.o ${PROJ} *.core core ${PROG} tags *.err
+
+ install: ${PROG}
+- ${INSTALL} -o root -g wheel -s -m 711 ${PROG} ${PREFIX}/bin
+-.if ${OSTYPE}!="OpenBSD"
+- ${INSTALL} -o root -g wheel -m 755 ${PROG}.sh ${PREFIX}/etc/rc.d
+-.endif
+- ${INSTALL} -o root -g wheel -m 644 ${MAN8} ${PREFIX}/man/man8
++ ${BSD_INSTALL_PROGRAM} ${PROG} ${PREFIX}/bin
++ ${BSD_INSTALL_SCRIPT} ${PROG}.sh ${PREFIX}/etc/rc.d
++ ${BSD_INSTALL_MAN} ${MAN8} ${PREFIX}/man/man8
+
+ deinstall:
+ ${RM} ${PREFIX}/bin/${PROG}
+ ${RM} ${PREFIX}/man/man8/${PROG}.8
+-.if ${OSTYPE}!="OpenBSD"
+ ${RM} ${PREFIX}/etc/rc.d/${PROG}.sh
+-.endif
+
+ ${PROG}: ${OBJ}
+ ${CC} ${CFLAGS} -o ${PROG} ${OBJ} ${LIBS}