From 8e2bcddbcef7cb9dae88bd8901ac148918b47c92 Mon Sep 17 00:00:00 2001 From: "Philip M. Gollucci" Date: Fri, 8 May 2009 15:34:44 +0000 Subject: - USE_APACHE=yes is deprecated - only for www/apache13 - Fix NO* - Convert to AP_FAST_BUILD/AP_GENPLIST - Bump PORTREVISION - Use SF macro PR: ports/133639 Approved by: maintainter timeout (30 days) Submitted by: me --- www/mod_sqlinclude/Makefile | 26 ++++++++++++-------------- www/mod_sqlinclude/pkg-plist | 7 ------- 2 files changed, 12 insertions(+), 21 deletions(-) delete mode 100644 www/mod_sqlinclude/pkg-plist diff --git a/www/mod_sqlinclude/Makefile b/www/mod_sqlinclude/Makefile index d64ae2347171..196aff945fe1 100644 --- a/www/mod_sqlinclude/Makefile +++ b/www/mod_sqlinclude/Makefile @@ -6,32 +6,30 @@ PORTNAME= mod_sqlinclude PORTVERSION= 1.4 +PORTREVISION= 1 CATEGORIES= www -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITES= SF MASTER_SITE_SUBDIR= ${PORTNAME:S/_/-/} EXTRACT_SUFX= .tgz MAINTAINER= anders@FreeBSD.org COMMENT= An Apache module implementing config inclusion from MySQL databases +USE_APACHE= 1.3 USE_MYSQL= yes -DOCS= CHANGES.txt README.txt test.sql -.if defined(WITH_APACHE2) || exists(${LOCALBASE}/include/apache2/apr.h) -IGNORE= Sorry, mod_sqlinclude only works with Apache 1.x -.else -USE_APACHE= yes -.endif +AP_FAST_BUILD= yes +AP_GENPLIST= yes + +AP_INC= ${LOCALBASE}/include +AP_LIB= ${LOCALBASE}/lib/mysql -lmysqlclient -do-build: - (cd ${WRKSRC} && ${APXS} -c -I${LOCALBASE}/include \ - -L${LOCALBASE}/lib/mysql -lmysqlclient mod_sqlinclude.c) +PORTDOCS= CHANGES.txt README.txt test.sql -do-install: - (cd ${WRKSRC} && ${APXS} -i -A -n 'sqlinclude' mod_sqlinclude.so) +post-install: .if !defined(NOPORTDOCS) - @${INSTALL} -d -m 0755 ${DOCSDIR} -.for f in ${DOCS} + ${MKDIR} ${DOCSDIR} +.for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/ .endfor .endif diff --git a/www/mod_sqlinclude/pkg-plist b/www/mod_sqlinclude/pkg-plist deleted file mode 100644 index 953b6df5b3bc..000000000000 --- a/www/mod_sqlinclude/pkg-plist +++ /dev/null @@ -1,7 +0,0 @@ -libexec/apache/mod_sqlinclude.so -@exec %D/sbin/apxs -e -A -n sqlinclude %f -@unexec %D/sbin/apxs -e -A -n sqlinclude %f -%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt -%%PORTDOCS%%%%DOCSDIR%%/README.txt -%%PORTDOCS%%%%DOCSDIR%%/test.sql -%%PORTDOCS%%@dirrm %%DOCSDIR%% -- cgit v1.2.3