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 /net-mgmt/trafd | |
parent | upgrade to 0.3 (diff) |
fix install from pkg
PR: 44168
Submitted by: Dan Pelleg <daniel+gnats@pelleg.org>
Diffstat (limited to 'net-mgmt/trafd')
-rw-r--r-- | net-mgmt/trafd/Makefile | 8 | ||||
-rw-r--r-- | net-mgmt/trafd/pkg-plist | 5 |
2 files changed, 8 insertions, 5 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 |