- Fix packaging without root

Reported by:	Andrzej Tobola <ato@iem.pw.edu.pl>
Submitted by: "J.R. Oldroyd" <fbsd@opal.com> (maintainer)
This commit is contained in:
Guido Falsi 2014-05-16 21:32:51 +00:00
parent 9f7e5b86e2
commit 6b70301cee
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354268
2 changed files with 12 additions and 0 deletions

View file

@ -3,6 +3,7 @@
PORTNAME= wifimgr
PORTVERSION= 1.11
PORTREVISION= 1
CATEGORIES= net-mgmt sysutils
MASTER_SITES= http://opal.com/freebsd/ports/net-mgmt/wifimgr/ \
CRITICAL
@ -19,6 +20,10 @@ OPTIONS_DEFINE= NLS
.include <bsd.port.options.mk>
.if ${OSVERSION} >= 901504
MAKE_ENV+= INSTALL="install -U"
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext pkgconfig
PLIST_SUB+= NLS=""
@ -28,4 +33,9 @@ PLIST_SUB+= NLS="@comment "
MAKE_ENV+= WITHOUT_NLS=${WITHOUT_NLS}
.endif
post-patch:
.if ${OSVERSION} < 901504
@${REINPLACE_CMD} -e 's/-o root -g wheel//' ${WRKSRC}/src/Makefile
.endif
.include <bsd.port.mk>

View file

@ -1,5 +1,7 @@
bin/wifimgr
@mode 4511
libexec/wifimgrsu
@mode
man/man8/wifimgr.8.gz
%%DATADIR%%/icons/eye.png
%%DATADIR%%/icons/freebsd-surf.png