Unbreak and fix plist.
Use DOCSDIR. Use default DOCSDIR location. Approved by: portmgr (linimon)
This commit is contained in:
parent
5983d1b71c
commit
6e1a2f845a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=140808
4 changed files with 12 additions and 28 deletions
|
@ -16,10 +16,6 @@ COMMENT= Allows users to use PostgreSQL databases for user authentication
|
|||
BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
|
||||
RUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/${APACHE_PORT}
|
||||
|
||||
BROKEN= Incomplete pkg-plist
|
||||
DEPRECATED= ${BROKEN}
|
||||
EXPIRATION_DATE=2005-09-22
|
||||
|
||||
USE_PGSQL= yes
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//}
|
||||
|
@ -42,26 +38,21 @@ AP_INCLUDE?= ${PREFIX}/include/apache
|
|||
AP_LIBEXEC?= ${PREFIX}/libexec/apache
|
||||
.endif
|
||||
|
||||
AUTH_PGSQL_DOCS= apache/manual/mod/mod_auth_pgsql
|
||||
|
||||
PLIST_SUB+= AUTH_PGSQL_DOCS="${AUTH_PGSQL_DOCS}"
|
||||
|
||||
HAS_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --with-pgsql=${PREFIX} \
|
||||
--with-apxs=${APXS}
|
||||
|
||||
post-install:
|
||||
.if !defined(NOPORTDOCS)
|
||||
@${MKDIR} ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}
|
||||
@${MKDIR} ${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/README \
|
||||
${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/
|
||||
${DOCSDIR}
|
||||
${TR} -d \\015 < ${WRKSRC}/mod_auth_pgsql.html \
|
||||
> ${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html
|
||||
> ${DOCSDIR}/index.html
|
||||
${CHMOD} ${SHAREMODE} \
|
||||
${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html
|
||||
${DOCSDIR}/index.html
|
||||
${CHOWN} ${SHAREOWN}:${SHAREGRP} \
|
||||
${PREFIX}/share/doc/${AUTH_PGSQL_DOCS}/index.html
|
||||
${LN} -sf ${AUTH_PGSQL_DOCS} ${PREFIX}/share/doc/
|
||||
${DOCSDIR}/index.html
|
||||
.endif
|
||||
${CAT} ${PKGMESSAGE}
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
libexec/apache/mod_auth_pgsql.so
|
||||
@exec %D/sbin/apxs -e -a -n auth_pgsql %f
|
||||
@unexec %D/sbin/apxs -e -A -n auth_pgsql %f
|
||||
%%PORTDOCS%%share/doc/%%AUTH_PGSQL_DOCS%%/README
|
||||
%%PORTDOCS%%share/doc/%%AUTH_PGSQL_DOCS%%/index.html
|
||||
%%PORTDOCS%%@exec (cd %D/share/doc && ln -sf %%AUTH_PGSQL_DOCS%% mod_auth_pgsql)
|
||||
%%PORTDOCS%%@unexec rm -f %D/share/doc/mod_auth_pgsql
|
||||
%%PORTDOCS%%@dirrm share/doc/%%AUTH_PGSQL_DOCS%%
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
%%PORTDOCS%%%%DOCSDIR%%/index.html
|
||||
%%PORTDOCS%%@dirrm %%DOCSDIR%%
|
||||
|
|
|
@ -18,12 +18,9 @@ BUILD_DEPENDS= ${APXS}:${PORTSDIR}/${APACHE_PORT}
|
|||
RUN_DEPENDS= ${LOCALBASE}/sbin/${AP_TARGET}:${PORTSDIR}/${APACHE_PORT} \
|
||||
${LOCALBASE}/sbin/pwcheck:${PORTSDIR}/security/cyrus-sasl
|
||||
|
||||
BROKEN= Incomplete pkg-plist
|
||||
DEPRECATED= ${BROKEN}
|
||||
EXPIRATION_DATE=2005-09-22
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
APACHE_PORT?= ${AP_CATEGORY}/${AP_PORT}
|
||||
MAKE_ARGS+= DOC_DIR="${DOCSDIR}"
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
|
@ -43,9 +40,7 @@ AP_CATEGORY= www
|
|||
.endif
|
||||
|
||||
AP_PORT= apache13${AP_MOD_SSL_SUFFIX}
|
||||
AUTH_PWCHECK_DOCS= share/doc/apache/manual/mod/mod_auth_pwcheck
|
||||
PLIST_SUB= AUTH_PWCHECK_DOCS="${AUTH_PWCHECK_DOCS}" \
|
||||
AP_LIBEXEC="${AP_LIBEXEC}" \
|
||||
PLIST_SUB= AP_LIBEXEC="${AP_LIBEXEC}" \
|
||||
AP_SYSCONF="${AP_SYSCONF}" \
|
||||
APXS="${APXS}"
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%%AP_LIBEXEC%%/mod_auth_pwcheck.so
|
||||
%%AUTH_PWCHECK_DOCS%%/index.html
|
||||
%%DOCSDIR%%/index.html
|
||||
@unexec %%APXS%% -e -A -n auth_pwcheck mod_auth_pwcheck.so
|
||||
@unexec /bin/rm %%AP_SYSCONF%%/httpd.conf.bak
|
||||
@dirrm %%AUTH_PWCHECK_DOCS%%
|
||||
@dirrm %%DOCSDIR%%
|
||||
|
|
Loading…
Reference in a new issue