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

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

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

CVSweb <webmaster@jp.NetBSD.org>