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

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

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

CVSweb <webmaster@jp.NetBSD.org>