aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-26 17:01:06 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-26 17:01:06 +0800
commit3fc4ae3130bc90d6685cb1f3e1426ae0aac9597b (patch)
treea59cf3420766627289264d64d197b287016effdf
parentd8b1323189e557c5539d316d0977d78c3202d5e7 (diff)
downloadfreebsd-ports-gnome-3fc4ae3130bc90d6685cb1f3e1426ae0aac9597b.tar.gz
freebsd-ports-gnome-3fc4ae3130bc90d6685cb1f3e1426ae0aac9597b.tar.zst
freebsd-ports-gnome-3fc4ae3130bc90d6685cb1f3e1426ae0aac9597b.zip
Support staging
-rw-r--r--sysutils/vlogger/Makefile20
-rw-r--r--sysutils/vlogger/pkg-plist1
2 files changed, 11 insertions, 10 deletions
diff --git a/sysutils/vlogger/Makefile b/sysutils/vlogger/Makefile
index e4a7c965c755..7b5a1d7105ef 100644
--- a/sysutils/vlogger/Makefile
+++ b/sysutils/vlogger/Makefile
@@ -13,19 +13,19 @@ LICENSE= GPLv2
RUN_DEPENDS= p5-DBI>=0:${PORTSDIR}/databases/p5-DBI
-USES= perl5
+USES= perl5 shebangfix
NO_BUILD= yes
-MAN1= ${PORTNAME}.1
+SHEBANG_FILES= vlogger
-NO_STAGE= yes
-do-install:
- @${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
+OPTIONS_DEFINE= EXAMPLES
-post-install:
- ${MKDIR} ${EXAMPLESDIR} ${DATADIR}
- @${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-dbi.conf ${EXAMPLESDIR}/${PORTNAME}-dbi.conf
- @${INSTALL_DATA} ${WRKSRC}/mysql_create.sql ${DATADIR}/mysql_create.sql
- @${INSTALL_MAN} ${WRKSRC}/${MAN1} ${PREFIX}/man/man1/${MAN1}
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
+ ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}-dbi.conf \
+ ${STAGEDIR}${EXAMPLESDIR}/${PORTNAME}-dbi.conf
+ ${INSTALL_DATA} ${WRKSRC}/mysql_create.sql ${STAGEDIR}${DATADIR}
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>
diff --git a/sysutils/vlogger/pkg-plist b/sysutils/vlogger/pkg-plist
index 634f407754a2..5e2e35005ef7 100644
--- a/sysutils/vlogger/pkg-plist
+++ b/sysutils/vlogger/pkg-plist
@@ -1,5 +1,6 @@
bin/vlogger
share/examples/vlogger/vlogger-dbi.conf
share/vlogger/mysql_create.sql
+man/man1/vlogger.1.gz
@dirrmtry share/examples/vlogger
@dirrmtry share/vlogger