aboutsummaryrefslogtreecommitdiff
path: root/net/linuxigd
diff options
context:
space:
mode:
authorVanilla I. Shu <vanilla@FreeBSD.org>2014-06-09 15:40:50 +0000
committerVanilla I. Shu <vanilla@FreeBSD.org>2014-06-09 15:40:50 +0000
commit1efc3f8bffb6f5e13f8a92174e3f12678410a668 (patch)
treede728291e4ef024a2a7228f122f2153fc4febd28 /net/linuxigd
parent76151ac5bea92cc4350cb9c2f0a54802104409bd (diff)
downloadports-1efc3f8bffb6f5e13f8a92174e3f12678410a668.tar.gz
ports-1efc3f8bffb6f5e13f8a92174e3f12678410a668.zip
Notes
Diffstat (limited to 'net/linuxigd')
-rw-r--r--net/linuxigd/Makefile5
-rw-r--r--net/linuxigd/files/patch-Makefile23
-rw-r--r--net/linuxigd/pkg-plist7
3 files changed, 15 insertions, 20 deletions
diff --git a/net/linuxigd/Makefile b/net/linuxigd/Makefile
index c4fa92c3935e..5089b429b969 100644
--- a/net/linuxigd/Makefile
+++ b/net/linuxigd/Makefile
@@ -10,15 +10,12 @@ MASTER_SITES= SF/linux-igd/linux-igd/${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Linux UPnP Internet Gateway Device
-LIB_DEPENDS= upnp.9:${PORTSDIR}/devel/upnp
+LIB_DEPENDS= libupnp.so:${PORTSDIR}/devel/upnp
USE_RC_SUBR= linuxigd
USES= gmake
MAKE_ENV= PTHREAD_LIBS=${PTHREAD_LIBS}
-MAN8= upnpd.8
-
-NO_STAGE= yes
post-extract:
@${RM} ${WRKSRC}/iptc.?
diff --git a/net/linuxigd/files/patch-Makefile b/net/linuxigd/files/patch-Makefile
index 9f0c9410b85b..3427383e152c 100644
--- a/net/linuxigd/files/patch-Makefile
+++ b/net/linuxigd/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig Sun Jun 17 00:17:05 2007
-+++ Makefile Sun Jun 17 00:18:25 2007
+--- Makefile.orig 2006-05-24 06:16:36.000000000 +0800
++++ Makefile 2014-06-09 23:38:21.146264899 +0800
@@ -1,25 +1,11 @@
-PREFIX=/usr
-LIBUPNP_PREFIX=/usr
@@ -28,7 +28,7 @@
all: upnpd
upnpd: $(FILES)
-@@ -33,11 +19,12 @@
+@@ -33,11 +19,11 @@ clean:
rm -f *.o upnpd
install: upnpd
@@ -40,12 +40,11 @@
- install upnpd $(PREFIX)/sbin
- install upnpd.8 $(PREFIX)/share/man/man8
- if [ ! -f /etc/upnpd.conf ]; then install etc/upnpd.conf /etc; fi
-+ install -d $(PREFIX)/etc/linuxigd
-+ $(BSD_INSTALL_DATA) etc/gatedesc.xml $(PREFIX)/etc/linuxigd
-+ $(BSD_INSTALL_DATA) etc/gateconnSCPD.xml $(PREFIX)/etc/linuxigd
-+ $(BSD_INSTALL_DATA) etc/gateicfgSCPD.xml $(PREFIX)/etc/linuxigd
-+ $(BSD_INSTALL_DATA) etc/dummy.xml $(PREFIX)/etc/linuxigd
-+ $(BSD_INSTALL_PROGRAM) upnpd $(PREFIX)/sbin
-+ $(BSD_INSTALL_DATA) upnpd.8 $(PREFIX)/man/man8
-+ $(BSD_INSTALL_DATA) etc/upnpd.conf $(PREFIX)/etc/upnpd.conf.sample
-+ if [ ! -f $(PREFIX)/etc/upnpd.conf ]; then $(BSD_INSTALL_DATA) $(PREFIX)/etc/upnpd.conf.sample $(PREFIX)/etc/upnpd.conf; fi
++ install -d $(DESTDIR)$(PREFIX)/etc/linuxigd
++ $(BSD_INSTALL_DATA) etc/gatedesc.xml $(DESTDIR)$(PREFIX)/etc/linuxigd
++ $(BSD_INSTALL_DATA) etc/gateconnSCPD.xml $(DESTDIR)$(PREFIX)/etc/linuxigd
++ $(BSD_INSTALL_DATA) etc/gateicfgSCPD.xml $(DESTDIR)$(PREFIX)/etc/linuxigd
++ $(BSD_INSTALL_DATA) etc/dummy.xml $(DESTDIR)$(PREFIX)/etc/linuxigd
++ $(BSD_INSTALL_PROGRAM) upnpd $(DESTDIR)$(PREFIX)/sbin
++ $(BSD_INSTALL_DATA) upnpd.8 $(DESTDIR)$(PREFIX)/man/man8
++ $(BSD_INSTALL_DATA) etc/upnpd.conf $(DESTDIR)$(PREFIX)/etc/upnpd.conf.sample
diff --git a/net/linuxigd/pkg-plist b/net/linuxigd/pkg-plist
index 51906af9d4c6..29adda15482d 100644
--- a/net/linuxigd/pkg-plist
+++ b/net/linuxigd/pkg-plist
@@ -1,9 +1,8 @@
-sbin/upnpd
etc/linuxigd/dummy.xml
etc/linuxigd/gateconnSCPD.xml
etc/linuxigd/gatedesc.xml
etc/linuxigd/gateicfgSCPD.xml
-@unexec if cmp -s %D/etc/upnpd.conf.sample %D/etc/upnpd.conf; then rm -f %D/etc/upnpd.conf; fi
-etc/upnpd.conf.sample
-@exec if [ ! -f %D/etc/upnpd.conf ]; then cp %D/etc/upnpd.conf.sample %D/etc/upnpd.conf; fi
+@sample etc/upnpd.conf.sample
+man/man8/upnpd.8.gz
+sbin/upnpd
@dirrm etc/linuxigd