[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / www / davical

Annotation of pkgsrc/www/davical/Makefile, Revision 1.12

1.12    ! wiz         1: # $NetBSD: Makefile,v 1.11 2011/10/25 07:33:54 wiz Exp $
1.1       jym         2: #
                      3:
                      4: DISTNAME=      davical-${DAVICAL_VERSION}
1.12    ! wiz         5: DAVICAL_VERSION=1.0.2
1.1       jym         6: CATEGORIES=    www
                      7: MASTER_SITES=  http://debian.mcmillan.net.nz/packages/davical/
                      8:
                      9: MAINTAINER=    jym@NetBSD.org
                     10: HOMEPAGE=      http://www.davical.org/
                     11: COMMENT=       Simple CalDAV server using a PostgreSQL backend
                     12:
                     13: LICENSE=       gnu-gpl-v2 AND gnu-gpl-v3
                     14:
                     15: PKG_DESTDIR_SUPPORT=   user-destdir
                     16:
                     17: DAVICALDIR=    ${PREFIX}/share/davical
                     18: EGDIR=         ${PREFIX}/share/examples/davical
                     19: DOCDIR=                ${PREFIX}/share/doc/davical
                     20:
1.2       jym        21: BUILD_DEFS=    APACHE_USER APACHE_GROUP PGUSER PGGROUP
1.1       jym        22:
1.2       jym        23: # davical_dba account
                     24: DAVICAL_USER?= ${PGUSER}
                     25: DAVICAL_GROUP?=        ${PGGROUP}
1.1       jym        26:
                     27: USE_TOOLS=     pax msgfmt perl:build
                     28:
                     29: PAXDIRS=       htdocs inc dba po scripts
                     30:
                     31: INSTALLATION_DIRS=     ${DOCDIR} ${EGDIR}/config
                     32:
                     33: .include "../../lang/php/phpversion.mk"
                     34:
1.3       jym        35: DEPENDS+=      ${APACHE_PKG_PREFIX}-${PHP_PKG_PREFIX}>=5.2:../../www/ap-php
1.1       jym        36: DEPENDS+=      ${PHP_PKG_PREFIX}-pgsql>=4.3.1:../../databases/php-pgsql
                     37: DEPENDS+=      ${PHP_PKG_PREFIX}-pdo_pgsql>=${PHP_BASE_VERS}:../../databases/php-pdo_pgsql
1.12    ! wiz        38: DEPENDS+=      ${PHP_PKG_PREFIX}-libawl>=0.51:../../devel/php-libawl
1.1       jym        39: DEPENDS+=      p5-YAML>=0.71:../../textproc/p5-YAML
                     40: DEPENDS+=      pwgen>=2.06:../../sysutils/pwgen
                     41: DEPENDS+=      postgresql${PGSQL_VERSION}-client-[0-9]*:../../databases/postgresql${PGSQL_VERSION}-client
                     42:
                     43: PKG_SYSCONFSUBDIR=     davical
                     44:
                     45: MESSAGE_SUBST+=                DAVICALDIR=${DAVICALDIR:Q} DOCDIR=${DOCDIR:Q}
                     46: MESSAGE_SUBST+=                PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
1.2       jym        47: MESSAGE_SUBST+=                HOMEPAGE=${HOMEPAGE:Q}
1.1       jym        48:
                     49: CONF_FILES=            ${EGDIR}/davical.conf   \
                     50:                        ${PKG_SYSCONFDIR}/davical.conf
                     51:
1.2       jym        52: CONF_FILES_PERMS+=     ${EGDIR}/config/example-administration.yml      \
                     53:                        ${PKG_SYSCONFDIR}/administration.yml            \
                     54:                        ${DAVICAL_USER} ${DAVICAL_GROUP} 0600
1.1       jym        55:
                     56: CONF_FILES_PERMS+=     ${EGDIR}/config/example-config.php      \
                     57:                        ${PKG_SYSCONFDIR}/config.php            \
1.2       jym        58:                        ${APACHE_USER} ${APACHE_GROUP} 0640
1.1       jym        59:
1.9       wiz        60: REPLACE_PERL=          dba/update-davical-database
1.1       jym        61:
                     62: REPLACE_INTERPRETER+=  php
1.9       wiz        63: REPLACE.php.old=       .*php
1.1       jym        64: REPLACE.php.new=       ${PREFIX}/bin/php
1.9       wiz        65: REPLACE_FILES.php=     scripts/cron-sync-ldap.php
                     66: REPLACE_FILES.php+=    scripts/sync-remote-caldav.php
1.7       wiz        67: REPLACE_FILES.php+=    scripts/refresh-alarms.php
1.9       wiz        68: REPLACE_FILES.php+=    scripts/tz-update.php
1.1       jym        69:
                     70: SUBST_CLASSES+=                conf-path
                     71: SUBST_STAGE.conf-path= pre-configure
                     72: SUBST_FILES.conf-path= inc/always.php.in dba/update-davical-database
                     73: SUBST_FILES.conf-path+=        inc/davical_configuration_missing.php
                     74: SUBST_SED.conf-path+=  -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
                     75: SUBST_MESSAGE.conf-path=Fixing configuration path.
                     76:
                     77: # See ../../devel/php-libawl/Makefile.common for the LIBAWLDIR value
                     78: SUBST_CLASSES+=                inc-path
                     79: SUBST_STAGE.inc-path=  pre-configure
                     80: SUBST_FILES.inc-path=  davical.conf inc/always.php.in
                     81: SUBST_FILES.inc-path+= scripts/po/rebuild-translations.sh
                     82: SUBST_FILES.inc-path+= dba/create-database.sh
                     83: SUBST_SED.inc-path+=   -e "s|@LIBAWLPATH@|${PREFIX}/${LIBAWLDIR}|g"
                     84: SUBST_MESSAGE.inc-path=        Fixing AWL include path.
                     85:
                     86: SUBST_CLASSES+=                examples
                     87: SUBST_STAGE.examples=  pre-configure
                     88: SUBST_FILES.examples=  dba/create-database.sh
                     89: SUBST_SED.examples+=   -e "s|@EGDIRCONFIG@|${EGDIR}/config|g"
                     90: SUBST_MESSAGE.examples=        Fixing config examples path.
                     91:
                     92: SUBST_CLASSES+=                files
                     93: SUBST_STAGE.files=     pre-configure
                     94: SUBST_FILES.files=     davical.conf
                     95: SUBST_SED.files+=      -e "s|@DAVICALDIR@|${DAVICALDIR}|g"
                     96: SUBST_MESSAGE.files=   Fixing DAViCal configuration file for Apache.
                     97:
                     98: post-extract:
                     99:        ${CP} ${FILESDIR}/davical.conf ${WRKSRC}/davical.conf
                    100:
                    101: pre-install:
                    102:        ${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
                    103:        ${FIND} ${WRKSRC}/po -name "*~" -print | ${XARGS} ${RM} -f
                    104:
                    105: do-install:
                    106:        ${INSTALL_DATA} ${WRKSRC}/davical.conf  \
                    107:                ${DESTDIR}${EGDIR}/davical.conf
                    108:
                    109:        cd ${WRKSRC}/docs && pax -rwpam . ${DESTDIR}${DOCDIR}
                    110:
                    111: .      for f in COPYING CREDITS ChangeLog INSTALL README TODO VERSION
                    112:                cd ${WRKSRC} && \
                    113:                ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
                    114: .      endfor
                    115:
                    116: .      for d in ${PAXDIRS}
                    117:                ${INSTALL_DATA_DIR} ${DESTDIR}${DAVICALDIR}/${d}
                    118:                cd ${WRKSRC}/${d} && pax -rwpam . ${DESTDIR}${DAVICALDIR}/${d}
                    119: .      endfor
                    120:
                    121:        cd ${WRKSRC}/config && for f in *; do                           \
                    122:                ${INSTALL_DATA} $$f ${DESTDIR}${EGDIR}/config/$$f;      \
                    123:        done
                    124:
                    125: .include "../../mk/pgsql.buildlink3.mk"
                    126: .include "../../devel/php-libawl/Makefile.common"
                    127: .include "../../mk/apache.mk"
                    128: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>