diff options
Diffstat (limited to 'www/mod_sqlinclude')
-rw-r--r-- | www/mod_sqlinclude/Makefile | 26 | ||||
-rw-r--r-- | www/mod_sqlinclude/pkg-plist | 7 |
2 files changed, 12 insertions, 21 deletions
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%% |