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

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

1.1       jym         1: # $NetBSD$
                      2: #
                      3:
                      4: DISTNAME=      davical-${DAVICAL_VERSION}
                      5: DAVICAL_VERSION=0.9.9
                      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:
                     21: BUILD_DEFS=    APACHE_USER APACHE_GROUP
                     22:
                     23: DAVICAL_USER?= ${APACHE_USER}
                     24: DAVICAL_GROUP?=        ${APACHE_GROUP}
                     25:
                     26: USE_TOOLS=     pax msgfmt perl:build
                     27:
                     28: PAXDIRS=       htdocs inc dba po scripts
                     29:
                     30: INSTALLATION_DIRS=     ${DOCDIR} ${EGDIR}/config
                     31:
                     32: .include "../../lang/php/phpversion.mk"
                     33:
                     34: DEPENDS+=      ${PHP_PKG_PREFIX}-pgsql>=4.3.1:../../databases/php-pgsql
                     35: DEPENDS+=      ${PHP_PKG_PREFIX}-pdo_pgsql>=${PHP_BASE_VERS}:../../databases/php-pdo_pgsql
                     36: DEPENDS+=      ${PHP_PKG_PREFIX}-libawl>=0.42:../../devel/php-libawl
                     37: DEPENDS+=      p5-DBD-postgresql>=2.16.1:../../databases/p5-DBD-postgresql
                     38: DEPENDS+=      p5-Class-DBI-Pg>=0.09:../../databases/p5-Class-DBI-Pg
                     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: PKG_SYSCONFDIR_PERMS=  ${DAVICAL_USER} ${DAVICAL_GROUP} 0700
                     45:
                     46: MESSAGE_SUBST+=                DAVICALDIR=${DAVICALDIR:Q} DOCDIR=${DOCDIR:Q}
                     47: MESSAGE_SUBST+=                PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
                     48:
                     49: CONF_FILES=            ${EGDIR}/davical.conf   \
                     50:                        ${PKG_SYSCONFDIR}/davical.conf
                     51:
                     52: CONF_FILES+=           ${EGDIR}/config/example-administration.yml      \
                     53:                        ${PKG_SYSCONFDIR}/administration.yml
                     54:
                     55: CONF_FILES_PERMS+=     ${EGDIR}/config/example-config.php      \
                     56:                        ${PKG_SYSCONFDIR}/config.php            \
                     57:                        ${DAVICAL_USER} ${DAVICAL_GROUP} 0640
                     58:
                     59: REPLACE_INTERPRETER+=  perl
                     60: REPLACE.perl.old=      .*/bin/perl
                     61: REPLACE.perl.new=      ${PREFIX}/bin/perl
                     62: REPLACE_FILES.perl=    scripts/po/extract.pl
                     63:
                     64: REPLACE_INTERPRETER+=  php
                     65: REPLACE.php.old=       .*/bin/php
                     66: REPLACE.php.new=       ${PREFIX}/bin/php
                     67: REPLACE_FILES.php=     scripts/sync-remote-caldav.php
                     68:
                     69: SUBST_CLASSES+=                conf-path
                     70: SUBST_STAGE.conf-path= pre-configure
                     71: SUBST_FILES.conf-path= inc/always.php.in dba/update-davical-database
                     72: SUBST_FILES.conf-path+=        inc/davical_configuration_missing.php
                     73: SUBST_SED.conf-path+=  -e "s|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR}|g"
                     74: SUBST_MESSAGE.conf-path=Fixing configuration path.
                     75:
                     76: # See ../../devel/php-libawl/Makefile.common for the LIBAWLDIR value
                     77: SUBST_CLASSES+=                inc-path
                     78: SUBST_STAGE.inc-path=  pre-configure
                     79: SUBST_FILES.inc-path=  davical.conf inc/always.php.in
                     80: SUBST_FILES.inc-path+= scripts/po/rebuild-translations.sh
                     81: SUBST_FILES.inc-path+= dba/create-database.sh
                     82: SUBST_SED.inc-path+=   -e "s|@LIBAWLPATH@|${PREFIX}/${LIBAWLDIR}|g"
                     83: SUBST_MESSAGE.inc-path=        Fixing AWL include path.
                     84:
                     85: SUBST_CLASSES+=                examples
                     86: SUBST_STAGE.examples=  pre-configure
                     87: SUBST_FILES.examples=  dba/create-database.sh
                     88: SUBST_SED.examples+=   -e "s|@EGDIRCONFIG@|${EGDIR}/config|g"
                     89: SUBST_MESSAGE.examples=        Fixing config examples path.
                     90:
                     91: SUBST_CLASSES+=                files
                     92: SUBST_STAGE.files=     pre-configure
                     93: SUBST_FILES.files=     davical.conf
                     94: SUBST_SED.files+=      -e "s|@DAVICALDIR@|${DAVICALDIR}|g"
                     95: SUBST_MESSAGE.files=   Fixing DAViCal configuration file for Apache.
                     96:
                     97: post-extract:
                     98:        ${CP} ${FILESDIR}/davical.conf ${WRKSRC}/davical.conf
                     99:
                    100: pre-install:
                    101:        ${FIND} ${WRKSRC} -name "*.orig" -print | ${XARGS} ${RM} -f
                    102:        ${FIND} ${WRKSRC}/po -name "*~" -print | ${XARGS} ${RM} -f
                    103:
                    104: do-install:
                    105:        ${INSTALL_DATA} ${WRKSRC}/davical.conf  \
                    106:                ${DESTDIR}${EGDIR}/davical.conf
                    107:
                    108:        cd ${WRKSRC}/docs && pax -rwpam . ${DESTDIR}${DOCDIR}
                    109:
                    110: .      for f in COPYING CREDITS ChangeLog INSTALL README TODO VERSION
                    111:                cd ${WRKSRC} && \
                    112:                ${INSTALL_DATA} ${WRKSRC}/${f} ${DESTDIR}${DOCDIR}
                    113: .      endfor
                    114:
                    115: .      for d in ${PAXDIRS}
                    116:                ${INSTALL_DATA_DIR} ${DESTDIR}${DAVICALDIR}/${d}
                    117: .      endfor
                    118:
                    119: .      for d in ${PAXDIRS}
                    120:                cd ${WRKSRC}/${d} && pax -rwpam . ${DESTDIR}${DAVICALDIR}/${d}
                    121: .      endfor
                    122:
                    123:        cd ${WRKSRC}/config && for f in *; do                           \
                    124:                ${INSTALL_DATA} $$f ${DESTDIR}${EGDIR}/config/$$f;      \
                    125:        done
                    126:
                    127: .include "../../mk/pgsql.buildlink3.mk"
                    128: .include "../../devel/php-libawl/Makefile.common"
                    129: .include "../../mk/apache.mk"
                    130: .include "../../mk/bsd.pkg.mk"

CVSweb <webmaster@jp.NetBSD.org>