1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

- update to 1.1.6

- add stage support
- add LICENSE

PR:		ports/189796
Submitted by:	Alexander Hausner <alex@hugo.bmg.gv.at> (maintainer)
This commit is contained in:
Olli Hauer 2014-05-18 19:53:56 +00:00
parent 4f70231c9e
commit 5ef11b8b8f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=354464
3 changed files with 14 additions and 19 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= mod_authn_otp PORTNAME= mod_authn_otp
PORTVERSION= 1.1.5 PORTVERSION= 1.1.6
CATEGORIES= www CATEGORIES= www
MASTER_SITES= http://mod-authn-otp.googlecode.com/files/ \ MASTER_SITES= http://mod-authn-otp.googlecode.com/files/ \
http://alex.bmg.gv.at/programs/ http://alex.bmg.gv.at/programs/
@ -12,32 +12,26 @@ DIST_SUBDIR= apache2
MAINTAINER= alex@hugo.bmg.gv.at MAINTAINER= alex@hugo.bmg.gv.at
COMMENT= Apache module for one-time password authentication COMMENT= Apache module for one-time password authentication
LICENSE= APACHE20
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
USE_APACHE= 22 USE_APACHE= 22
MAN1= otptool.1
PORTEXAMPLES= users.sample PORTEXAMPLES= users.sample
NO_STAGE= yes
OPTIONS_DEFINE= EXAMPLES OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk> .include <bsd.port.options.mk>
CONFIGURE_ARGS= --prefix=${PREFIX} \
--mandir=${MANPREFIX}/man
post-configure: post-configure:
@${REINPLACE_CMD} 's|CFLAGS =|CFLAGS ?=|' \ @${REINPLACE_CMD} 's|CFLAGS =|CFLAGS ?=|' \
${WRKSRC}/Makefile ${WRKSRC}/Makefile
pre-install:
@${MKDIR} ${STAGEDIR}/${PREFIX}/${APACHEMODDIR}
post-install: post-install:
@${APXS} -e -A -n ${PORTNAME:S/mod_//} ${APACHEMODDIR}/${PORTNAME}.so @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.if ${PORT_OPTIONS:MEXAMPLES} ${INSTALL_DATA} ${WRKSRC}/users.sample ${STAGEDIR}${EXAMPLESDIR}
${MKDIR} ${EXAMPLESDIR}/
${INSTALL_DATA} ${WRKSRC}/users.sample ${EXAMPLESDIR}/
.endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (apache2/mod_authn_otp-1.1.5.tar.gz) = 119f445518ccf300b8c71e4cb3391bc942cf68e8b0fc8df3d1624ca3aceef9b1 SHA256 (apache2/mod_authn_otp-1.1.6.tar.gz) = c6ea1776128cadb98068fea616013dd0bf2d8f8dfaf12e01fde1cdf7bcfc8837
SIZE (apache2/mod_authn_otp-1.1.5.tar.gz) = 97889 SIZE (apache2/mod_authn_otp-1.1.6.tar.gz) = 99838

View File

@ -1,5 +1,6 @@
@unexec sed -i '' -E '/LoadModule[[:blank:]]+authn_otp_module/d' %D/%%APACHEETCDIR%%/httpd.conf
%%APACHEMODDIR%%/mod_authn_otp.so
@exec %D/sbin/apxs -e -A -n authn_otp %D/%F
@unexec echo \"Don\'t forget to remove all mod_authn_otp-related directives in your httpd.conf\"
bin/otptool bin/otptool
@unexec sed -i '' -E '/LoadModule[[:blank:]]+%%AP_NAME%%_module/d' %D/%%APACHEETCDIR%%/httpd.conf
%%APACHEMODDIR%%/%%AP_MODULE%%
@exec %D/sbin/apxs -e %%AP_MOD_EN%% -n %%AP_NAME%% %D/%F
@unexec echo \"Don\'t forget to remove all mod_%%AP_NAME%%-related directives in your httpd.conf\"
man/man1/otptool.1.gz