mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
net/vnstat: Clean up Makefile
- Use INSTALL_TARGET=install-exec to install the binary executables - Use GNU_CONFIGURE_MANPREFIX and INSTALL_TARGET=install-man to install the manpages - Use USES=localbase and CONFIGURE_ARGS=--disable-extra-paths to support non-default LOCALBASE - Add CONFIGURE_ARGS=--disable-image-output when GUI option is disabled - Bump PORTREVISION for package change PR: 273231
This commit is contained in:
parent
7a39a268ce
commit
0d2be8be77
@ -1,5 +1,6 @@
|
||||
PORTNAME= vnstat
|
||||
PORTVERSION= 2.11
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= https://github.com/vergoh/vnstat/releases/download/v${PORTVERSION}/ \
|
||||
https://humdi.net/vnstat/
|
||||
@ -11,9 +12,12 @@ WWW= https://humdi.net/vnstat/ \
|
||||
|
||||
LICENSE= GPLv2
|
||||
|
||||
USES= sqlite
|
||||
USES= localbase sqlite
|
||||
|
||||
CONFIGURE_ARGS= --disable-extra-paths
|
||||
GNU_CONFIGURE= yes
|
||||
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
|
||||
INSTALL_TARGET= install-exec install-man
|
||||
USE_RC_SUBR= vnstat
|
||||
|
||||
USERS= vnstat
|
||||
@ -29,19 +33,11 @@ OPTIONS_DEFAULT=GUI
|
||||
OPTIONS_SUB= yes
|
||||
GUI_DESC= Build with graphics/gd dependency
|
||||
|
||||
GUI_CONFIGURE_OFF= --disable-image-output
|
||||
GUI_LIB_DEPENDS= libgd.so:graphics/gd
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/vnstat ${STAGEDIR}${PREFIX}/bin/vnstat
|
||||
post-install:
|
||||
${INSTALL_DATA} ${WRKSRC}/cfg/vnstat.conf ${STAGEDIR}${PREFIX}/etc/vnstat.conf.sample
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/vnstatd ${STAGEDIR}${PREFIX}/sbin/vnstatd
|
||||
${INSTALL_MAN} ${WRKSRC}/man/vnstat.1 ${STAGEDIR}${PREFIX}/share/man/man1/vnstat.1
|
||||
${INSTALL_MAN} ${WRKSRC}/man/vnstat.conf.5 ${STAGEDIR}${PREFIX}/share/man/man5/vnstat.conf.5
|
||||
${INSTALL_MAN} ${WRKSRC}/man/vnstatd.8 ${STAGEDIR}${PREFIX}/share/man/man8/vnstatd.8
|
||||
|
||||
do-install-GUI-on:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/vnstati ${STAGEDIR}${PREFIX}/bin/vnstati
|
||||
${INSTALL_MAN} ${WRKSRC}/man/vnstati.1 ${STAGEDIR}${PREFIX}/share/man/man1/vnstati.1
|
||||
|
||||
do-install-DOCS-on:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
|
Loading…
Reference in New Issue
Block a user