diff options
-rw-r--r-- | net-mgmt/trafd/Makefile | 8 | ||||
-rw-r--r-- | net-mgmt/trafd/pkg-plist | 5 | ||||
-rw-r--r-- | net/trafd/Makefile | 8 | ||||
-rw-r--r-- | net/trafd/pkg-plist | 5 |
4 files changed, 16 insertions, 10 deletions
diff --git a/net-mgmt/trafd/Makefile b/net-mgmt/trafd/Makefile index c2f800d602ef..7234a2e8414e 100644 --- a/net-mgmt/trafd/Makefile +++ b/net-mgmt/trafd/Makefile @@ -7,6 +7,7 @@ PORTNAME= trafd PORTVERSION= 3.0.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.riss-telecom.ru/pub/dev/trafd/ EXTRACT_SUFX= .tgz @@ -23,12 +24,11 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/trafstatd/trafstatd ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/traflog/traflog ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/traflog/traflog.format ${PREFIX}/etc - -post-install: + @${MKDIR} ${PREFIX}/var/trafd + @${MKDIR} ${PREFIX}/var/log .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif - ${MKDIR} ${PREFIX}/var/trafd - ${MKDIR} ${PREFIX}/var/log + .include <bsd.port.mk> diff --git a/net-mgmt/trafd/pkg-plist b/net-mgmt/trafd/pkg-plist index a43a72995842..aa17c21fe938 100644 --- a/net-mgmt/trafd/pkg-plist +++ b/net-mgmt/trafd/pkg-plist @@ -9,6 +9,9 @@ bin/trafstop etc/traflog.format %%PORTDOCS%%share/doc/trafd/README %%PORTDOCS%%@dirrm share/doc/trafd -@dirrm var/trafd +@exec mkdir %D/var 2>/dev/null || true +@exec mkdir %D/var/log 2>/dev/null || true +@exec mkdir %D/var/trafd 2>/dev/null || true +@unexec rmdir %D/var/trafd 2>/dev/null || true @unexec rmdir %D/var/log 2>/dev/null || true @unexec rmdir %D/var 2>/dev/null || true diff --git a/net/trafd/Makefile b/net/trafd/Makefile index c2f800d602ef..7234a2e8414e 100644 --- a/net/trafd/Makefile +++ b/net/trafd/Makefile @@ -7,6 +7,7 @@ PORTNAME= trafd PORTVERSION= 3.0.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= ftp://ftp.riss-telecom.ru/pub/dev/trafd/ EXTRACT_SUFX= .tgz @@ -23,12 +24,11 @@ do-install: ${INSTALL_PROGRAM} ${WRKSRC}/trafstatd/trafstatd ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/traflog/traflog ${PREFIX}/bin ${INSTALL_DATA} ${WRKSRC}/traflog/traflog.format ${PREFIX}/etc - -post-install: + @${MKDIR} ${PREFIX}/var/trafd + @${MKDIR} ${PREFIX}/var/log .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} .endif - ${MKDIR} ${PREFIX}/var/trafd - ${MKDIR} ${PREFIX}/var/log + .include <bsd.port.mk> diff --git a/net/trafd/pkg-plist b/net/trafd/pkg-plist index a43a72995842..aa17c21fe938 100644 --- a/net/trafd/pkg-plist +++ b/net/trafd/pkg-plist @@ -9,6 +9,9 @@ bin/trafstop etc/traflog.format %%PORTDOCS%%share/doc/trafd/README %%PORTDOCS%%@dirrm share/doc/trafd -@dirrm var/trafd +@exec mkdir %D/var 2>/dev/null || true +@exec mkdir %D/var/log 2>/dev/null || true +@exec mkdir %D/var/trafd 2>/dev/null || true +@unexec rmdir %D/var/trafd 2>/dev/null || true @unexec rmdir %D/var/log 2>/dev/null || true @unexec rmdir %D/var 2>/dev/null || true |