diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-11-27 11:26:25 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2015-11-27 11:26:25 +0000 |
commit | 0942d892431290a84768da1e8b290f1a7c1aa84f (patch) | |
tree | ba9db0cd87b0f7b254bf02c4d840dae8536c0b4f /net | |
parent | 12805ae760091a86bb4ec659d46e9b9e657a40ef (diff) | |
download | ports-0942d892431290a84768da1e8b290f1a7c1aa84f.tar.gz ports-0942d892431290a84768da1e8b290f1a7c1aa84f.zip |
Notes
Diffstat (limited to 'net')
-rw-r--r-- | net/olsrd/Makefile | 12 | ||||
-rw-r--r-- | net/olsrd/files/patch-Makefile | 34 | ||||
-rw-r--r-- | net/olsrd/pkg-message | 3 |
3 files changed, 23 insertions, 26 deletions
diff --git a/net/olsrd/Makefile b/net/olsrd/Makefile index f43d6a21a0cf..b79763655720 100644 --- a/net/olsrd/Makefile +++ b/net/olsrd/Makefile @@ -3,7 +3,7 @@ PORTNAME= olsrd DISTVERSION= 0.6.6.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= http://www.olsr.org/releases/0.6/ \ http://ftp2.za.freebsd.org/pub/mesh/pc/protocols/olsr/ @@ -26,11 +26,6 @@ MULTI_IF_DESC= IPv4 multiple interface support MULTI_IF_LIB_DEPENDS= libnet.so:${PORTSDIR}/net/libnet MULTI_IF_MAKE_ARGS= LIBNET=1 -.if defined(PREFIX) -MAKE_ARGS+= PREFIX=${PREFIX} -.endif -MAKE_ARGS+= STAGEDIR=${STAGEDIR} - .include <bsd.port.pre.mk> .if ${ARCH} == "amd64" || ${ARCH} == "ia64" @@ -41,8 +36,7 @@ post-patch: @${REINPLACE_CMD} -e 's|/sbin/ldconfig|:|g' ${WRKSRC}/make/Makefile.fbsd post-install: - @${ECHO_MSG} "" - @${ECHO_MSG} " Set olsrd_enable=\"YES\" in /etc/rc.conf to enable" - @${ECHO_MSG} "" + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME} + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.* .include <bsd.port.post.mk> diff --git a/net/olsrd/files/patch-Makefile b/net/olsrd/files/patch-Makefile index d8fa664045eb..9d15d0318245 100644 --- a/net/olsrd/files/patch-Makefile +++ b/net/olsrd/files/patch-Makefile @@ -7,19 +7,19 @@ - mkdir -p $(SBINDIR) - install -m 755 $(EXENAME) $(SBINDIR) - $(STRIP) $(SBINDIR)/$(EXENAME) -+ mkdir -p ${STAGEDIR}$(SBINDIR) -+ install -m 755 $(EXENAME) ${STAGEDIR}$(SBINDIR) -+ $(STRIP) ${STAGEDIR}$(SBINDIR)/$(EXENAME) ++ mkdir -p ${DESTDIR}$(SBINDIR) ++ install -m 755 $(EXENAME) ${DESTDIR}$(SBINDIR) ++ $(STRIP) ${DESTDIR}$(SBINDIR)/$(EXENAME) ifeq ($(SGW_SUPPORT),1) - $(MAKECMDPREFIX)if [ -e $(SBINDIR)/$(SGW_POLICY_SCRIPT) ]; then \ - cp -f files/$(SGW_POLICY_SCRIPT) $(SBINDIR)/$(SGW_POLICY_SCRIPT).new; \ - echo "Policy routing script was saved as $(SBINDIR)/$(SGW_POLICY_SCRIPT).new"; \ -+ $(MAKECMDPREFIX)if [ -e ${STAGEDIR}$(SBINDIR)/$(SGW_POLICY_SCRIPT) ]; then \ -+ cp -f files/$(SGW_POLICY_SCRIPT) ${STAGEDIR}$(SBINDIR)/$(SGW_POLICY_SCRIPT).new; \ -+ echo "Policy routing script was saved as ${STAGEDIR}$(SBINDIR)/$(SGW_POLICY_SCRIPT).new"; \ ++ $(MAKECMDPREFIX)if [ -e ${DESTDIR}$(SBINDIR)/$(SGW_POLICY_SCRIPT) ]; then \ ++ cp -f files/$(SGW_POLICY_SCRIPT) ${DESTDIR}$(SBINDIR)/$(SGW_POLICY_SCRIPT).new; \ ++ echo "Policy routing script was saved as ${DESTDIR}$(SBINDIR)/$(SGW_POLICY_SCRIPT).new"; \ else \ - cp -f files/$(SGW_POLICY_SCRIPT) $(SBINDIR)/$(SGW_POLICY_SCRIPT); \ -+ cp -f files/$(SGW_POLICY_SCRIPT) ${STAGEDIR}$(SBINDIR)/$(SGW_POLICY_SCRIPT); \ ++ cp -f files/$(SGW_POLICY_SCRIPT) ${DESTDIR}$(SBINDIR)/$(SGW_POLICY_SCRIPT); \ fi endif @@ -46,11 +46,11 @@ - else \ - cp -f files/olsrd.conf.default.lq $(CFGFILE); \ - fi -+ mkdir -p ${STAGEDIR}$(ETCDIR) -+ -cp files/olsrd.conf.default.full ${STAGEDIR}$(CFGFILE).default.full -+ -cp files/olsrd.conf.default.rfc ${STAGEDIR}$(CFGFILE).default.rfc -+ -cp files/olsrd.conf.default.lq ${STAGEDIR}$(CFGFILE).default.lq -+ -cp files/olsrd.conf.default.lq-fisheye ${STAGEDIR}$(CFGFILE).default.lq-fisheye ++ mkdir -p ${DESTDIR}$(ETCDIR) ++ -cp files/olsrd.conf.default.full ${DESTDIR}$(CFGFILE).default.full ++ -cp files/olsrd.conf.default.rfc ${DESTDIR}$(CFGFILE).default.rfc ++ -cp files/olsrd.conf.default.lq ${DESTDIR}$(CFGFILE).default.lq ++ -cp files/olsrd.conf.default.lq-fisheye ${DESTDIR}$(CFGFILE).default.lq-fisheye @echo ------------------------------------------- @echo Edit $(CFGFILE) before running olsrd!! @echo ------------------------------------------- @@ -60,10 +60,10 @@ - cp files/olsrd.8.gz $(MANDIR)/man8/$(EXENAME).8.gz - mkdir -p $(MANDIR)/man5/ - cp files/olsrd.conf.5.gz $(MANDIR)/man5/$(CFGNAME).5.gz -+ mkdir -p ${STAGEDIR}$(MANDIR)/man8/ -+ cp files/olsrd.8.gz ${STAGEDIR}$(MANDIR)/man8/$(EXENAME).8.gz -+ mkdir -p ${STAGEDIR}$(MANDIR)/man5/ -+ cp files/olsrd.conf.5.gz ${STAGEDIR}$(MANDIR)/man5/$(CFGNAME).5.gz ++ mkdir -p ${DESTDIR}$(MANDIR)/man8/ ++ cp files/olsrd.8.gz ${DESTDIR}$(MANDIR)/man8/$(EXENAME).8.gz ++ mkdir -p ${DESTDIR}$(MANDIR)/man5/ ++ cp files/olsrd.conf.5.gz ${DESTDIR}$(MANDIR)/man5/$(CFGNAME).5.gz endif uninstall_olsrd: uninstall_bin @@ -72,7 +72,7 @@ libs_install install_libs: - $(MAKECMDPREFIX)set -e;for dir in $(SUBDIRS);do $(MAKECMD) -C lib/$$dir LIBDIR=$(LIBDIR) install;done -+ $(MAKECMDPREFIX)set -e;for dir in $(SUBDIRS);do $(MAKECMD) -C lib/$$dir LIBDIR=${STAGEDIR}$(LIBDIR) install;done ++ $(MAKECMDPREFIX)set -e;for dir in $(SUBDIRS);do $(MAKECMD) -C lib/$$dir LIBDIR=${DESTDIR}$(LIBDIR) install;done libs_uninstall uninstall_libs: $(MAKECMDPREFIX)set -e;for dir in $(SUBDIRS);do $(MAKECMD) -C lib/$$dir LIBDIR=$(LIBDIR) uninstall;done diff --git a/net/olsrd/pkg-message b/net/olsrd/pkg-message new file mode 100644 index 000000000000..dc37acffcc87 --- /dev/null +++ b/net/olsrd/pkg-message @@ -0,0 +1,3 @@ + +Set olsrd_enable="YES" in /etc/rc.conf to enable + |