| @@ -1,92 +1,92 @@ | | | @@ -1,92 +1,92 @@ |
1 | # $NetBSD: Makefile,v 1.110 2009/10/04 01:27:15 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.111 2010/02/05 17:40:51 wiz Exp $ |
2 | | | 2 | |
3 | DISTNAME= squirrelmail-1.4.20-RC2 | | 3 | DISTNAME= squirrelmail-1.4.20-RC2 |
4 | PKGNAME= ${DISTNAME:S/-RC2/rc2/} | | 4 | PKGNAME= ${DISTNAME:S/-RC2/rc2/} |
5 | PKGREVISION= 2 | | 5 | PKGREVISION= 3 |
6 | CATEGORIES= mail www | | 6 | CATEGORIES= mail www |
7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squirrelmail/} | | 7 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=squirrelmail/} |
8 | EXTRACT_SUFX= .tar.bz2 | | 8 | EXTRACT_SUFX= .tar.bz2 |
9 | | | 9 | |
10 | MAINTAINER= martti@NetBSD.org | | 10 | MAINTAINER= martti@NetBSD.org |
11 | HOMEPAGE= http://www.squirrelmail.org/ | | 11 | HOMEPAGE= http://www.squirrelmail.org/ |
12 | COMMENT= PHP webmail package | | 12 | COMMENT= PHP webmail package |
13 | LICENSE= gnu-gpl-v2 | | 13 | LICENSE= gnu-gpl-v2 |
14 | | | 14 | |
15 | CONFLICTS= sq-attachment-handlers-[0-9]* | | 15 | CONFLICTS= sq-attachment-handlers-[0-9]* |
16 | CONFLICTS+= sq-squirrelspell-[0-9]* | | 16 | CONFLICTS+= sq-squirrelspell-[0-9]* |
17 | CONFLICTS+= ja-squirrelspell-[0-9]* | | 17 | CONFLICTS+= ja-squirrelspell-[0-9]* |
18 | CONFLICTS+= ja-squirrelmail-[0-9]* | | 18 | CONFLICTS+= ja-squirrelmail-[0-9]* |
19 | | | 19 | |
20 | DEPENDS+= ${PHP_PKG_PREFIX}-gettext>=4.3.3:../../devel/php-gettext | | 20 | DEPENDS+= ${PHP_PKG_PREFIX}-gettext>=4.3.3:../../devel/php-gettext |
21 | | | 21 | |
22 | USE_LANGUAGES= # empty | | 22 | USE_LANGUAGES= # empty |
23 | NO_BUILD= yes | | 23 | NO_BUILD= yes |
24 | USE_TOOLS+= perl:run | | 24 | USE_TOOLS+= perl:run |
25 | REPLACE_PERL+= config/conf.pl | | 25 | REPLACE_PERL+= config/conf.pl |
26 | | | 26 | |
27 | PKG_GROUPS_VARS+= APACHE_GROUP | | 27 | PKG_GROUPS_VARS+= APACHE_GROUP |
28 | PKG_USERS_VARS+= APACHE_USER | | 28 | PKG_USERS_VARS+= APACHE_USER |
29 | BUILD_DEFS+= VARBASE | | 29 | BUILD_DEFS+= VARBASE |
30 | | | 30 | |
31 | .include "../../mk/bsd.prefs.mk" | | 31 | .include "../../mk/bsd.prefs.mk" |
32 | | | 32 | |
33 | PKG_SYSCONFSUBDIR?= httpd | | 33 | PKG_SYSCONFSUBDIR?= httpd |
34 | MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} | | 34 | MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} |
35 | | | 35 | |
36 | EGDIR= ${PREFIX}/share/examples/squirrelmail | | 36 | EGDIR= ${PREFIX}/share/examples/squirrelmail |
37 | SMDIR= ${PREFIX}/share/squirrelmail | | 37 | SMDIR= ${PREFIX}/share/squirrelmail |
38 | DATADIR= ${VARBASE}/spool/squirrelmail | | 38 | DATADIR= ${VARBASE}/spool/squirrelmail |
39 | ATTACHMENTS_DIR= ${DATADIR}/attachments | | 39 | ATTACHMENTS_DIR= ${DATADIR}/attachments |
40 | USER_PREFS_DIR= ${DATADIR}/data | | 40 | USER_PREFS_DIR= ${DATADIR}/data |
41 | | | 41 | |
42 | MESSAGE_SUBST+= SMDIR=${SMDIR} | | 42 | MESSAGE_SUBST+= SMDIR=${SMDIR} |
43 | FILES_SUBST+= SMDIR=${SMDIR} | | 43 | FILES_SUBST+= SMDIR=${SMDIR} |
44 | | | 44 | |
45 | CONF_FILES= ${SMDIR}/config/config_default.php \ | | 45 | CONF_FILES= ${SMDIR}/config/config_default.php \ |
46 | ${SMDIR}/config/config.php | | 46 | ${SMDIR}/config/config.php |
47 | CONF_FILES+= ${SMDIR}/data/default_pref \ | | 47 | CONF_FILES+= ${SMDIR}/data/default_pref \ |
48 | ${DATADIR}/data/default_pref | | 48 | ${DATADIR}/data/default_pref |
49 | CONF_FILES+= ${EGDIR}/squirrelmail.conf \ | | 49 | CONF_FILES+= ${EGDIR}/squirrelmail.conf \ |
50 | ${PKG_SYSCONFDIR}/squirrelmail.conf | | 50 | ${PKG_SYSCONFDIR}/squirrelmail.conf |
51 | | | 51 | |
52 | REQD_DIRS+= ${SMDIR} ${SMDIR}/config | | 52 | REQD_DIRS+= ${SMDIR} ${SMDIR}/config |
53 | | | 53 | |
54 | OWN_DIRS= ${DATADIR} | | 54 | OWN_DIRS= ${DATADIR} |
55 | OWN_DIRS_PERMS= ${ATTACHMENTS_DIR} ${ROOT_USER} ${APACHE_GROUP} 730 | | 55 | OWN_DIRS_PERMS= ${ATTACHMENTS_DIR} ${ROOT_USER} ${APACHE_GROUP} 730 |
56 | OWN_DIRS_PERMS+= ${USER_PREFS_DIR} ${APACHE_USER} ${APACHE_GROUP} 755 | | 56 | OWN_DIRS_PERMS+= ${USER_PREFS_DIR} ${APACHE_USER} ${APACHE_GROUP} 755 |
57 | | | 57 | |
58 | SUBST_CLASSES+= paths | | 58 | SUBST_CLASSES+= paths |
59 | SUBST_FILES.paths= ${WRKDIR}/squirrelmail.conf.dist | | 59 | SUBST_FILES.paths= ${WRKDIR}/squirrelmail.conf.dist |
60 | SUBST_FILES.paths+= config/config_default.php | | 60 | SUBST_FILES.paths+= config/config_default.php |
61 | SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' | | 61 | SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' |
62 | SUBST_SED.paths+= -e 's,@ATTACHMENTS_DIR@,${ATTACHMENTS_DIR},g' | | 62 | SUBST_SED.paths+= -e 's,@ATTACHMENTS_DIR@,${ATTACHMENTS_DIR},g' |
63 | SUBST_SED.paths+= -e 's,@USER_PREFS_DIR@,${USER_PREFS_DIR},g' | | 63 | SUBST_SED.paths+= -e 's,@USER_PREFS_DIR@,${USER_PREFS_DIR},g' |
64 | SUBST_SED.paths+= -e 's,@SMDIR@,${SMDIR},g' | | 64 | SUBST_SED.paths+= -e 's,@SMDIR@,${SMDIR},g' |
65 | SUBST_STAGE.paths= post-patch | | 65 | SUBST_STAGE.paths= post-patch |
66 | | | 66 | |
67 | INSTALLATION_DIRS= ${PKGMANDIR}/man8 | | 67 | INSTALLATION_DIRS= ${PKGMANDIR}/man8 |
68 | INSTALLATION_DIRS+= share/examples/squirrelmail | | 68 | INSTALLATION_DIRS+= share/examples/squirrelmail |
69 | INSTALLATION_DIRS+= share/squirrelmail | | 69 | INSTALLATION_DIRS+= share/squirrelmail |
70 | | | 70 | |
71 | post-extract: | | 71 | post-extract: |
72 | cp ${FILESDIR}/squirrelmail.conf.dist \ | | 72 | cp ${FILESDIR}/squirrelmail.conf.dist \ |
73 | ${WRKDIR}/squirrelmail.conf.dist | | 73 | ${WRKDIR}/squirrelmail.conf.dist |
74 | | | 74 | |
75 | pre-configure: | | 75 | pre-configure: |
76 | find ${WRKSRC} \( -name '*.orig*' -o -name '.cvsignore' \) \ | | 76 | find ${WRKSRC} \( -name '*.orig*' -o -name '.cvsignore' \) \ |
77 | -exec rm -f {} \; | | 77 | -exec rm -f {} \; |
78 | | | 78 | |
79 | do-install: | | 79 | do-install: |
80 | ${INSTALL_DATA} ${WRKDIR}/squirrelmail.conf.dist ${EGDIR}/squirrelmail.conf | | 80 | ${INSTALL_DATA} ${WRKDIR}/squirrelmail.conf.dist ${EGDIR}/squirrelmail.conf |
81 | cp -R ${WRKSRC}/* ${SMDIR} | | 81 | cp -R ${WRKSRC}/* ${SMDIR} |
82 | chown -R ${SHAREOWN}:${SHAREGRP} ${SMDIR} | | 82 | chown -R ${SHAREOWN}:${SHAREGRP} ${SMDIR} |
83 | find ${SMDIR} -type d -exec chmod ${PKGDIRMODE} {} \; | | 83 | find ${SMDIR} -type d -exec chmod ${PKGDIRMODE} {} \; |
84 | find ${SMDIR} -type f -exec chmod ${SHAREMODE} {} \; | | 84 | find ${SMDIR} -type f -exec chmod ${SHAREMODE} {} \; |
85 | chmod a+x ${SMDIR}/config/conf.pl | | 85 | chmod a+x ${SMDIR}/config/conf.pl |
86 | ${INSTALL_DATA} ${WRKSRC}/data/index.php ${USER_PREFS_DIR}/ | | 86 | ${INSTALL_DATA} ${WRKSRC}/data/index.php ${USER_PREFS_DIR}/ |
87 | ${INSTALL_DATA} ${WRKSRC}/data/.htaccess ${USER_PREFS_DIR}/ | | 87 | ${INSTALL_DATA} ${WRKSRC}/data/.htaccess ${USER_PREFS_DIR}/ |
88 | mv ${PREFIX}/share/squirrelmail/contrib/conf.pl.8 \ | | 88 | mv ${PREFIX}/share/squirrelmail/contrib/conf.pl.8 \ |
89 | ${PREFIX}/${PKGMANDIR}/man8/squirrelmail-conf.pl.8 | | 89 | ${PREFIX}/${PKGMANDIR}/man8/squirrelmail-conf.pl.8 |
90 | | | 90 | |
91 | .include "../../lang/php/phpversion.mk" | | 91 | .include "../../lang/php/phpversion.mk" |
92 | .include "../../mk/bsd.pkg.mk" | | 92 | .include "../../mk/bsd.pkg.mk" |