diff options
author | ijliao <ijliao@FreeBSD.org> | 2003-01-03 15:47:21 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2003-01-03 15:47:21 +0800 |
commit | f7f278a9ca53ed1e0c6554d2b646cf9c49623a59 (patch) | |
tree | 49c44f531601102fdcedf97b7264c05ebe6e8cb8 | |
parent | facbd4254073b8079c35c329ebba2d8c384a5ffe (diff) | |
download | freebsd-ports-gnome-f7f278a9ca53ed1e0c6554d2b646cf9c49623a59.tar.gz freebsd-ports-gnome-f7f278a9ca53ed1e0c6554d2b646cf9c49623a59.tar.zst freebsd-ports-gnome-f7f278a9ca53ed1e0c6554d2b646cf9c49623a59.zip |
fix install from pkg
PR: 44168
Submitted by: Dan Pelleg <daniel+gnats@pelleg.org>
-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 |