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

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

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

CVSweb <webmaster@jp.NetBSD.org>