| @@ -1,28 +1,31 @@ | | | @@ -1,28 +1,31 @@ |
1 | # $NetBSD: Makefile,v 1.16 2007/07/04 20:55:04 jlam Exp $ | | 1 | # $NetBSD: Makefile,v 1.16.6.1 2008/06/24 12:50:15 tron Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= geeklog-${VER} | | 4 | DISTNAME= geeklog-${VER} |
5 | PKGNAME= geeklog-${VER:C/(sr|-)/./g} | | 5 | PKGNAME= geeklog-${VER:C/(sr|-)/./g} |
| | | 6 | PKGREVISION= 2 |
6 | CATEGORIES= www | | 7 | CATEGORIES= www |
7 | MASTER_SITES= http://www.geeklog.net/filemgmt/upload_dir/ | | 8 | MASTER_SITES= http://www.geeklog.net/filemgmt/upload_dir/ |
8 | | | 9 | |
9 | MAINTAINER= taca@NetBSD.org | | 10 | MAINTAINER= taca@NetBSD.org |
10 | HOMEPAGE= http://www.geeklog.net/ | | 11 | HOMEPAGE= http://www.geeklog.net/ |
11 | COMMENT= PHP/MySQL based application for managing dynamic web content | | 12 | COMMENT= PHP/MySQL based application for managing dynamic web content |
12 | | | 13 | |
13 | DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.3.3:../../www/ap-php | | 14 | DEPENDS+= ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=4.3.3:../../www/ap-php |
14 | DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.0:../../databases/php-mysql | | 15 | DEPENDS+= ${PHP_PKG_PREFIX}-mysql>=4.3.0:../../databases/php-mysql |
15 | | | 16 | |
| | | 17 | USE_TOOLS+= pax:run |
| | | 18 | |
16 | VER= 1.4.1 | | 19 | VER= 1.4.1 |
17 | NO_BUILD= YES | | 20 | NO_BUILD= YES |
18 | | | 21 | |
19 | PKG_GROUPS_VARS+= APACHE_GROUP | | 22 | PKG_GROUPS_VARS+= APACHE_GROUP |
20 | BUILD_DEFS+= GEEKLOG_SITEBASE | | 23 | BUILD_DEFS+= GEEKLOG_SITEBASE |
21 | | | 24 | |
22 | GEEKLOG_SYS= emailgeeklogstories language plugins readme sql system | | 25 | GEEKLOG_SYS= emailgeeklogstories language plugins readme sql system |
23 | GEEKLOG_TMPL_SUB= backend images/articles images/library \ | | 26 | GEEKLOG_TMPL_SUB= backend images/articles images/library \ |
24 | images/topics images/userphotos | | 27 | images/topics images/userphotos |
25 | | | 28 | |
26 | GEEKLOG_CONF_FILES= config.php plugins/calendar/config.php \ | | 29 | GEEKLOG_CONF_FILES= config.php plugins/calendar/config.php \ |
27 | plugins/links/config.php plugins/polls/config.php \ | | 30 | plugins/links/config.php plugins/polls/config.php \ |
28 | plugins/spamx/config.php \ | | 31 | plugins/spamx/config.php \ |
| @@ -98,30 +101,30 @@ pre-install: | | | @@ -98,30 +101,30 @@ pre-install: |
98 | ${FIND} pear -type f -exec ${CHMOD} 0644 {} \; | | 101 | ${FIND} pear -type f -exec ${CHMOD} 0644 {} \; |
99 | | | 102 | |
100 | do-install: | | 103 | do-install: |
101 | ${INSTALL_DATA_DIR} ${GEEKLOG_DOCDIR} | | 104 | ${INSTALL_DATA_DIR} ${GEEKLOG_DOCDIR} |
102 | ${INSTALL_DATA} ${WRKDIR}/README ${GEEKLOG_DOCDIR} | | 105 | ${INSTALL_DATA} ${WRKDIR}/README ${GEEKLOG_DOCDIR} |
103 | .for f in ${GEEKLOG_CONF_FILES} | | 106 | .for f in ${GEEKLOG_CONF_FILES} |
104 | ${INSTALL_DATA_DIR} ${GEEKLOG_EXAMPLESDIR}/${f:H} | | 107 | ${INSTALL_DATA_DIR} ${GEEKLOG_EXAMPLESDIR}/${f:H} |
105 | ${INSTALL_DATA} ${WRKSRC}/${f} ${GEEKLOG_EXAMPLESDIR}/${f} | | 108 | ${INSTALL_DATA} ${WRKSRC}/${f} ${GEEKLOG_EXAMPLESDIR}/${f} |
106 | ${RM} ${WRKSRC}/${f} | | 109 | ${RM} ${WRKSRC}/${f} |
107 | .endfor | | 110 | .endfor |
108 | ${INSTALL_SCRIPT} ${WRKDIR}/createdb.php ${GEEKLOG_DIR} | | 111 | ${INSTALL_SCRIPT} ${WRKDIR}/createdb.php ${GEEKLOG_DIR} |
109 | ${INSTALL_DATA} ${WRKDIR}/geeklog.conf ${GEEKLOG_EXAMPLESDIR} | | 112 | ${INSTALL_DATA} ${WRKDIR}/geeklog.conf ${GEEKLOG_EXAMPLESDIR} |
110 | .for f in ${GEEKLOG_SYS} | | 113 | .for f in ${GEEKLOG_SYS} |
111 | cd ${WRKSRC}; ${PAX} -rw ${f} ${GEEKLOG_DIR} | | 114 | cd ${WRKSRC}; pax -rw ${f} ${GEEKLOG_DIR} |
112 | .endfor | | 115 | .endfor |
113 | cd ${WRKSRC}/public_html; \ | | 116 | cd ${WRKSRC}/public_html; \ |
114 | ${PAX} -rw admin ${GEEKLOG_DIR}; \ | | 117 | pax -rw admin ${GEEKLOG_DIR}; \ |
115 | ${RM} -rf admin | | 118 | ${RM} -rf admin |
116 | .for d in ${GEEKLOG_TMPL_SUB} | | 119 | .for d in ${GEEKLOG_TMPL_SUB} |
117 | cd ${WRKSRC}/public_html; \ | | 120 | cd ${WRKSRC}/public_html; \ |
118 | if [ -d ${d} ]; then \ | | 121 | if [ -d ${d} ]; then \ |
119 | ${PAX} -rw ${d} ${GEEKLOG_TMPL_DIR}; \ | | 122 | pax -rw ${d} ${GEEKLOG_TMPL_DIR}; \ |
120 | ${RM} -rf ${d}; \ | | 123 | ${RM} -rf ${d}; \ |
121 | fi | | 124 | fi |
122 | .endfor | | 125 | .endfor |
123 | cd ${WRKSRC}/public_html; ${PAX} -rw . ${GEEKLOG_PUBDIR} | | 126 | cd ${WRKSRC}/public_html; pax -rw . ${GEEKLOG_PUBDIR} |
124 | | | 127 | |
125 | .include "../../mk/apache.mk" | | 128 | .include "../../mk/apache.mk" |
126 | .include "../../lang/php/phpversion.mk" | | 129 | .include "../../lang/php/phpversion.mk" |
127 | .include "../../mk/bsd.pkg.mk" | | 130 | .include "../../mk/bsd.pkg.mk" |