aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/chillispot
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2014-01-19 18:40:27 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2014-01-19 18:40:27 +0000
commit3571d93c5513e4621383c04d3ce52057243ba86d (patch)
tree9e4c74d1107011c9bd267a80f7788dc71dd1e54b /net-mgmt/chillispot
parentb69539e61a12edd66db07f3cf99c8dbc22ae56ae (diff)
downloadports-3571d93c5513e4621383c04d3ce52057243ba86d.tar.gz
ports-3571d93c5513e4621383c04d3ce52057243ba86d.zip
Support stage
Fix shebang
Notes
Notes: svn path=/head/; revision=340334
Diffstat (limited to 'net-mgmt/chillispot')
-rw-r--r--net-mgmt/chillispot/Makefile39
-rw-r--r--net-mgmt/chillispot/pkg-plist1
2 files changed, 14 insertions, 26 deletions
diff --git a/net-mgmt/chillispot/Makefile b/net-mgmt/chillispot/Makefile
index 2ca19116a585..5e14dc9fb178 100644
--- a/net-mgmt/chillispot/Makefile
+++ b/net-mgmt/chillispot/Makefile
@@ -14,11 +14,12 @@ COMMENT= Wireless LAN Access Point Controller
CONFLICTS= coovachilli-[0-9]*
+USES= shebangfix
+SHEBANG_FILES= doc/hotspotlogin.cgi
GNU_CONFIGURE= yes
CONFIGURE_ARGS=-sysconfdir=${PREFIX}/etc
USE_RC_SUBR= chillispot
SUB_FILES= pkg-message installguide.txt
-MAN8= chilli.8
USE_GCC= any
OPTIONS_DEFINE= APACHE RADIUS
@@ -28,32 +29,18 @@ OPTIONS_SINGLE_RADIUS= FREERADIUS OPENRADIUS
FREERADIUS_DESC=depend on FreeRADIUS
OPENRADIUS_DESC=depend on OpenRADIUS
-NO_STAGE= yes
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MAPACHE}
-USE_APACHE_RUN= 22+
-.endif
-
-.if ${PORT_OPTIONS:MFREERADIUS}
-RUN_DEPENDS+= radiusd:${PORTSDIR}/net/freeradius
-.endif
-
-.if ${PORT_OPTIONS:MOPENRADIUS}
-RUN_DEPENDS+= radiusd:${PORTSDIR}/net/openradius
-.endif
+APACHE_USE= apache_run=22+
+FREERADIUS_RUN_DEPENDS= radiusd:${PORTSDIR}/net/freeradius
+OPENRADIUS_RUN_DEPENDS= radiusd:${PORTSDIR}/net/openradius
post-install:
-.if !defined(NOPORTDATA)
- ${MKDIR} ${DATADIR}
- ${INSTALL_MAN} ${WRKSRC}/doc/chilli.conf ${DATADIR}/chilli.conf.sample
- ${INSTALL_MAN} ${WRKSRC}/doc/dictionary.chillispot ${DATADIR}
- ${INSTALL_MAN} ${WRKSRC}/doc/freeradius.users ${DATADIR}
- ${INSTALL_MAN} ${WRKSRC}/doc/hotspotlogin.cgi ${DATADIR}
- ${INSTALL_MAN} ${WRKDIR}/installguide.txt ${DATADIR}
- ${INSTALL_MAN} ${FILESDIR}/pf.conf.sample ${DATADIR}
- ${INSTALL_MAN} ${FILESDIR}/ipfw-config.sample ${DATADIR}
-.endif
- @${CAT} ${PKGMESSAGE}
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/chilli.conf ${STAGEDIR}${DATADIR}/chilli.conf.sample
+ ${INSTALL_DATA} ${WRKSRC}/doc/dictionary.chillispot ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/freeradius.users ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/hotspotlogin.cgi ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKDIR}/installguide.txt ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${FILESDIR}/pf.conf.sample ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${FILESDIR}/ipfw-config.sample ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
diff --git a/net-mgmt/chillispot/pkg-plist b/net-mgmt/chillispot/pkg-plist
index b8d19f51f5e2..f5ef0e8214d6 100644
--- a/net-mgmt/chillispot/pkg-plist
+++ b/net-mgmt/chillispot/pkg-plist
@@ -1,5 +1,6 @@
@stopdaemon chillispot
sbin/chilli
+man/man8/chilli.8.gz
%%PORTDATA%%%%DATADIR%%/chilli.conf.sample
%%PORTDATA%%%%DATADIR%%/dictionary.chillispot
%%PORTDATA%%%%DATADIR%%/freeradius.users