diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-01-03 07:47:21 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2003-01-03 07:47:21 +0000 |
commit | b9bb1badc2849acb2a5b81638399f0b9ccf3e7db (patch) | |
tree | ed7ec4259c158ef03e01ea516a240ccdf9370d58 | |
parent | upgrade to 0.3 (diff) |
fix install from pkg
PR: 44168
Submitted by: Dan Pelleg <daniel+gnats@pelleg.org>
Notes
Notes:
svn path=/head/; revision=72358
-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 |