head	1.11;
access;
symbols
	pkgsrc-2026Q1:1.11.0.2
	pkgsrc-2026Q1-base:1.11
	pkgsrc-2025Q4:1.10.0.8
	pkgsrc-2025Q4-base:1.10
	pkgsrc-2025Q3:1.10.0.6
	pkgsrc-2025Q3-base:1.10
	pkgsrc-2025Q2:1.10.0.4
	pkgsrc-2025Q2-base:1.10
	pkgsrc-2025Q1:1.10.0.2
	pkgsrc-2025Q1-base:1.10
	pkgsrc-2024Q4:1.9.0.18
	pkgsrc-2024Q4-base:1.9
	pkgsrc-2024Q3:1.9.0.16
	pkgsrc-2024Q3-base:1.9
	pkgsrc-2024Q2:1.9.0.14
	pkgsrc-2024Q2-base:1.9
	pkgsrc-2024Q1:1.9.0.12
	pkgsrc-2024Q1-base:1.9
	pkgsrc-2023Q4:1.9.0.10
	pkgsrc-2023Q4-base:1.9
	pkgsrc-2023Q3:1.9.0.8
	pkgsrc-2023Q3-base:1.9
	pkgsrc-2023Q2:1.9.0.6
	pkgsrc-2023Q2-base:1.9
	pkgsrc-2023Q1:1.9.0.4
	pkgsrc-2023Q1-base:1.9
	pkgsrc-2022Q4:1.9.0.2
	pkgsrc-2022Q4-base:1.9
	pkgsrc-2022Q3:1.8.0.2
	pkgsrc-2022Q3-base:1.8
	pkgsrc-2022Q2:1.6.0.4
	pkgsrc-2022Q2-base:1.6
	pkgsrc-2022Q1:1.6.0.2
	pkgsrc-2022Q1-base:1.6
	pkgsrc-2021Q4:1.5.0.6
	pkgsrc-2021Q4-base:1.5
	pkgsrc-2021Q3:1.5.0.4
	pkgsrc-2021Q3-base:1.5
	pkgsrc-2021Q2:1.5.0.2
	pkgsrc-2021Q2-base:1.5
	pkgsrc-2021Q1:1.3.0.2
	pkgsrc-2021Q1-base:1.3
	pkgsrc-2020Q4:1.1.0.8
	pkgsrc-2020Q4-base:1.1
	pkgsrc-2020Q3:1.1.0.6
	pkgsrc-2020Q3-base:1.1
	pkgsrc-2020Q2:1.1.0.4
	pkgsrc-2020Q2-base:1.1
	pkgsrc-2020Q1:1.1.0.2
	pkgsrc-2020Q1-base:1.1;
locks; strict;
comment	@# @;


1.11
date	2026.03.01.08.01.38;	author triaxx;	state Exp;
branches;
next	1.10;
commitid	ayqCvSzgClxMifwG;

1.10
date	2025.02.08.03.44.47;	author taca;	state Exp;
branches;
next	1.9;
commitid	ZjrQrd9xGzKZhCIF;

1.9
date	2022.09.29.17.55.49;	author triaxx;	state Exp;
branches;
next	1.8;
commitid	qDsbRzeBTTAQJMVD;

1.8
date	2022.07.13.17.55.19;	author triaxx;	state Exp;
branches;
next	1.7;
commitid	hznTBN1Vzg5LeLLD;

1.7
date	2022.07.11.09.59.06;	author triaxx;	state Exp;
branches;
next	1.6;
commitid	KhNA8XV11i7JFsLD;

1.6
date	2021.12.29.06.05.18;	author taca;	state Exp;
branches;
next	1.5;
commitid	nUSF3DhpLS64CvmD;

1.5
date	2021.05.18.07.13.26;	author triaxx;	state Exp;
branches;
next	1.4;
commitid	jS5ohKNERAZ7cBTC;

1.4
date	2021.05.14.13.44.31;	author nia;	state Exp;
branches;
next	1.3;
commitid	BLfIFXcvryZ3w7TC;

1.3
date	2021.03.11.14.35.52;	author triaxx;	state Exp;
branches;
next	1.2;
commitid	GTy8wwEmAo4WPTKC;

1.2
date	2021.02.26.13.17.36;	author triaxx;	state Exp;
branches;
next	1.1;
commitid	HRdcgawIzzrwNdJC;

1.1
date	2020.02.11.20.36.49;	author triaxx;	state Exp;
branches;
next	;
commitid	SmtLLaLQp7R6wiWB;


desc
@@


1.11
log
@Reset maintainership
@
text
@# $NetBSD: Makefile,v 1.10 2025/02/08 03:44:47 taca Exp $

DISTNAME=	carddav-v4.4.3
PKGREVISION=	1
PKGNAME=	${PHP_PKG_PREFIX}-roundcube-plugin-${DISTNAME:S/-v/-/}
CATEGORIES=	mail
MASTER_SITES=	${MASTER_SITE_GITHUB:=mstilkerich/}
GITHUB_PROJECT=	rcmcarddav
GITHUB_RELEASE=	v${PKGVERSION_NOREV}

HOMEPAGE=	https://github.com/mstilkerich/rcmcarddav
MAINTAINER=	pkgsrc-users@@NetBSD.org
COMMENT=	CardDAV adapter for Roundcube
LICENSE=	gnu-gpl-v2

PHP_VERSIONS_INCOMPATIBLE=	56

USE_TOOLS+=	pax

.include "../../mk/bsd.prefs.mk"

NO_BUILD=	yes

REPLACE_PHP=	vendor/roundcube/plugin-installer/src/bin/rcubeinitdb.sh

DEPENDS+=	${PHP_PKG_PREFIX}-roundcube>=1.0.0:../../mail/roundcube

WRKSRC=		${WRKDIR}/carddav

PKG_SYSCONFSUBDIR=	roundcube

WWW_USER?=		${APACHE_USER}
WWW_GROUP?=		${APACHE_GROUP}
PKG_GROUPS_VARS+=	WWW_GROUP
PKG_USERS_VARS=		WWW_USER
BUILD_DEFS+=		WWW_USER WWW_GROUP APACHE_USER APACHE_GROUP

RCDIR=			share/roundcube
CDDIR=			${RCDIR}/plugins/carddav
EGDIR=			share/examples/roundcube/plugins/carddav

CD_SUBDIRS=		dbmigrations localization skins src vendor

.for d in ${CD_SUBDIRS}
INSTALLATION_DIRS+=	${CDDIR}/${d}
.endfor
INSTALLATION_DIRS+=	${EGDIR}

CONF_FILES_PERMS+=	${PREFIX}/${EGDIR}/config.inc.php \
			${PKG_SYSCONFDIR}/plugins/carddav/config.inc.php \
			${WWW_USER} ${WWW_GROUP} 0640

MESSAGE_SUBST+=		PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
SUBST_CLASSES+=		cfg
SUBST_STAGE.cfg=	pre-install
SUBST_MESSAGE.cfg=	Fixing configuration files.
SUBST_FILES.cfg=	carddav.php
SUBST_VARS.cfg=		PKG_SYSCONFDIR

do-install:
	${INSTALL_DATA} ${WRKSRC}/carddav.php \
		${DESTDIR}${PREFIX}/${CDDIR}/carddav.php
.for i in ${CD_SUBDIRS}
	cd ${WRKSRC}/${i} && ${FIND} . -type f -print | \
		${PAX} -rw ${DESTDIR}${PREFIX}/${CDDIR}/${i}
	${FIND} ${DESTDIR}${PREFIX}/${CDDIR}/${i} -type f | \
		${XARGS} ${CHMOD} ${SHAREMODE}
	${FIND} ${DESTDIR}${PREFIX}/${CDDIR}/${i} -type d | \
		${XARGS} ${CHMOD} ${PKGDIRMODE}
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} \
		${DESTDIR}${PREFIX}/${CDDIR}/${i}
.endfor
	${INSTALL_DATA} ${WRKSRC}/config.inc.php.dist \
		${DESTDIR}${PREFIX}/${EGDIR}/config.inc.php

.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
@


1.10
log
@multiple PHP support

* Use PHP_BASE_VERS in DEPENDS if required.
* Use REPLACE_PHP.

Bump PKGREVISION.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2022/09/29 17:55:49 triaxx Exp $
d12 1
a12 1
MAINTAINER=	triaxx@@NetBSD.org
@


1.9
log
@roundcube-plugin-carddav: Update to 4.4.3

pkgsrc changes:
---------------
  * Remove use of composer.

upstream changes:
-----------------
  * Properly set and interpret TYPE parameters, especially for TEL (Fixes #390)
  * RCMCardDAV now sets the PRODID property when it creates or modifies a vcard
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2022/07/13 17:55:19 triaxx Exp $
d4 1
d76 1
a76 1
.include "../../lang/php/replace.mk"
@


1.8
log
@roundcube-plugin-carddav: Mark this package incompatible with PHP 5.6
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2022/07/11 09:59:06 triaxx Exp $
d3 1
a3 1
DISTNAME=	carddav-v4.4.2
a24 1
BUILD_DEPENDS+=	${PHP_PKG_PREFIX}-composer-[0-9]*:../../devel/php-composer
a58 3
post-extract:
	${CP} ${FILESDIR}/composer.lock ${WRKSRC}

a59 1
	cd ${WRKSRC} && ${PREFIX}/bin/composer install --no-dev
@


1.7
log
@commit.msg
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2021/12/29 06:05:18 taca Exp $
d15 2
@


1.6
log
@Retire of php73, PHP 7.3.x.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2021/05/18 07:13:26 triaxx Exp $
d3 1
a3 1
DISTNAME=	carddav-v4.2.0
a27 2
PHP_VERSIONS_ACCEPTED=	74

@


1.5
log
@rouncube-plugin-carddarv: Update to 4.1.1

pkgsrc changes:
---------------
  * Change HOMEPAGE since the development lead is now on Github.
  * Add a composer.lock file to avoid PLIST breaking each time a dependency
    is updated.

upstream changes:
-----------------
Version 4.1.1 (to 4.1.0)
  o Fix: A fatal error would be raised when a password could not be decrypted,
    only on photo download. This would not be notable to the user (except for
    the photo not being displayed), but show up in the logs.
  o Fix #339: Allow adding public/shared addressbooks by giving full URL.
    Discovery is still used if the given URL does not point to an addressbook
    directly, or points to an addressbook inside the user's addressbook home.

Version 4.1.0 (to 4.0.4)
  o Fix: Prefer labels from X-ABLabel extension if available over standard
    labels
  o Fix #317: Support specification of department with empty organization
  o Support several levels of departments separated by semicolon that end up as
    structured value in the VCard
  o Fix #318: Some attributes (e.g. gender) could not be deleted when updating
    a contact
  o Fix #53: Only create displayname when not present in VCard / not provided
    by roundcube
  o Fix #325: Roundcube setting for contact sorting field was not used
  o Fix #279: More specific error message when syntactically wrong URL is
    entered for new addressbook
  o Fix #328: Contact search with MySQL might not have returned all results
  o Fix #332: When adding a new contact via "add to addressbook" from mail
    view, the email address was missing in the new card
  o New: Download externally referenced photos on demand, drastically speeding
    up sync with when photos are stored separately from the VCard (e.g.
    iCloud).  For details see #247.
  o New: Support for instant messaging data fields and maiden name (resolves
    #46). Interoperability with other CardDAV clients suffers some caveats, but
    I tried my best to achieve maximum possible interoperability. See IMPP.md
    for the gory details.
  o Removed a workaround that appears to be needed in the part to provide
    address data to the calendar plugin. It seems this is no longer the case
    for current versions of calendar.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2021/05/14 13:44:31 nia Exp $
d3 1
a3 1
DISTNAME=	carddav-v4.1.1
d28 1
a28 1
PHP_VERSIONS_ACCEPTED=	74 73
@


1.4
log
@roundcube-plugin-carddav: needs pax tool
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2021/03/11 14:35:52 triaxx Exp $
d3 1
a3 2
DISTNAME=	carddav-v4.0.4
PKGREVISION=	1
a8 1
EXTRACT_SUFX=	.tgz
d10 1
a10 1
HOMEPAGE=	https://www.benjamin-schieder.de/carddav.html
a18 1
NO_CONFIGURE=	yes
d60 3
@


1.3
log
@roundcube-plugin-carddav: Fix PLIST

pkgsrc changes:
---------------
  * PLIST has been fixed but the use of php-composer to install
    dependencies does not seem to be a good idea since the list of
    installed files has changed although the version of carddav has not.
  * Bump revision.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2021/02/26 13:17:36 triaxx Exp $
d17 2
d69 1
a69 1
		pax -rw ${DESTDIR}${PREFIX}/${CDDIR}/${i}
@


1.2
log
@roundcube-plugin-carddav: Update to 4.0.4

pkgsrc changes:
---------------
  * The main maintainer seems to have changed. The GitHub repository has been
    updated accordingly.
  * Since the vendor dependencies has been removed from the Github release, we
    use php-composer to resolve them.

upstream changes:
-----------------
Version 4.0.4 (to 4.0.3)
  o Fix #321: Boolean settings in presets caused errors when trying to store
    the preset's addressbooks to the database
  o Fix #322: The refresh time string from admin presets was not converted to
    seconds, causing errors or wrong values when storing the preset's
    addressbooks to the database
  o Fix #324: Changes not immediately visible with postgresql (delete contact,
    add/remove contact to/from group)
  o Fix: spurious error returned when creating VCard on Google

Version 4.0.3 (to 4.0.2)
  o Allow release 1.0 of carddavclient in composer dependencies
  o No changes to the plugin itself

Version 4.0.2 (to 4.0.1)
  o Fix #316: Incompatibility with Sabre/VObject version 4 preventing saving
    contacts using custom labels
  o Fix: Default refresh time set to 1 sec in settings

Version 4.0.1 (to 4.0.0)
  o Fix: Plugin version was not shown in about window for tarball installations
  o Fix: Collation behavior was case-insensitive for MySQL (only). Now unified
    across the different supported DBMS.
  o Fix #306: With MySQL, sync failure could occur when several custom labels
    where used that only differed in case (effect of previous issue).
  o Fix #308: With SQLite, the initial sync after adding a new addressbook was
    not automatically triggered.

Version 4.0.0 (to 3.0.3)
This release contains changes to DB schema. The database will be migrated
automatically upon login to roundcube.
  o All changes from 4.0.0-alpha1
  o Fix: Deletion of empty CATEGORIES-type groups
  o Fix: Delete CATEGORIES-type groups from DB that become empty during a sync
  o Fix: Renaming of empty CATEGORIES-type groups
  o Fix: During deletion, do not rely on the DB's ON CASCADE DELETE because
    this is disabled by default for SQLite
  o Fix: It was not possible to discover multiple addressbooks for an admin
    preset because of a wrong UNIQUE constraint in MySQL
  o Fix: Catch exceptions thrown inside the plugin (avoid "white page" on error)
  o Increase the maximum lengths of password, email and url fields
  o Use transactions to synchronize concurrent operations on the same
    addressbook (data consistency issues may still occur with MySQL because of
    roundcube DB layer bug). For details, see DBSYNC.md.
  o Unified database indexes across the different database backends: Create
    indexes for foreign key columns (PostgreSQL, SQLite)
  o Fixed issues in the migration scripts and added SQL scripts showing the
    current DB schema
  o Update hungarian translation (thanks to @@tsabi)

Version 4.0.0-alpha1 (to 3.0.3)
Note: The Changelog for this version is not complete
This is an alpha release because I did not perform any tests on it.
Nevertheless, it has many bugs fixed and I encourage you to upgrade and report
issues as you find them. The last release 3.0.3 has many issues that have been
fixed with in v4. I push this release early mainly because of the security
issue reported. I'll continue working on remaining issues I want to fix (note:
all of them are also present in 3.0.3) for v4 and I intend release a more
tested version and a more detailed changelog within the next weeks.
  o Security issue: It was possible to read data from other user's
    addressbooks. Depending on the configuration, it might also have been
    possible to change data in their addressbooks. Thanks to @@cnmicha for
    reporting this issue. This issue affects all previously released versions
    of RCMCardDAV using a database cache.
  o Many bugs you reported and several more I discovered during refactoring
    have been fixed.
  o The password scheme now defaults to encrypted (if you have not configured a
    password scheme, this will take effect automatically for newly stored
    password. If you don't want this, configure a password scheme in
    settings.php).
  o The URL is not changeable after creation of an addressbook anymore. It used
    to work in specific, but not all cases. As the behavior is potentially
    broken and not easy to fix, it is removed for now.
  o The two kinds of contact groups (VCard-based vs. CATEGORIES-based) are not
    transparently supported to the possible extent. The configuration switch is
    only meaningful concerning the type of group used when a new group is
    created from RCMCardDAV. See details here.
  o The CardDAV interaction is moved to a library. It is essentially a complete
    rewrite of the code communicating with the CardDAV servers and includes
    interoperability tests with many common servers, see here.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2020/02/11 20:36:49 triaxx Exp $
d4 1
@


1.1
log
@roundcube-plugin-carddav: added version 3.0.3
@
text
@d1 1
a1 1
# $NetBSD: $
d3 2
a4 2
DISTNAME=	carddav-3.0.3
PKGNAME=	${PHP_PKG_PREFIX}-roundcube-plugin-${DISTNAME}
d6 1
a6 1
MASTER_SITES=	${MASTER_SITE_GITHUB:=blind-coder/}
d9 1
a9 1
EXTRACT_SUFX=	.tar.bz2
d18 1
d21 3
d28 1
a28 1
DISTINFO_FILE=		distinfo
d42 1
a42 1
CD_SUBDIRS=		dbmigrations localization skins vendor
d57 1
a57 1
SUBST_FILES.cfg=	carddav_common.php
d61 1
a63 6
	${INSTALL_DATA} ${WRKSRC}/carddav_backend.php \
		${DESTDIR}${PREFIX}/${CDDIR}/carddav_backend.php
	${INSTALL_DATA} ${WRKSRC}/carddav_common.php \
		${DESTDIR}${PREFIX}/${CDDIR}/carddav_common.php
	${INSTALL_DATA} ${WRKSRC}/carddav_discovery.php \
		${DESTDIR}${PREFIX}/${CDDIR}/carddav_discovery.php
d77 1
a77 1
.include "../../lang/php/phpversion.mk"
@

