Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 7 Sep 2014 16:12:37 +0000 (UTC)
From:      Tijl Coosemans <tijl@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r367564 - in head: databases/courier-authlib-mysql databases/courier-authlib-pgsql databases/courier-authlib-userdb databases/courier-authlib-usergdbm mail/courier-authlib-vchkpw net/co...
Message-ID:  <201409071612.s87GCbO8065823@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tijl
Date: Sun Sep  7 16:12:36 2014
New Revision: 367564
URL: http://svnweb.freebsd.org/changeset/ports/367564
QAT: https://qat.redports.org/buildarchive/r367564/

Log:
  */courier-authlib*:
  - Add USES=libtool
  - Remove USE_LDCONFIG, not needed for modules
  - Disable static modules
  - Remove install-configure from INSTALL_TARGET, no impact with staging
  - Add manpages to pkg-plist
  - Use @sample
  - Replace pkg-(de)install and pre-install target with USERS and GROUPS
  - Create /var/run/authdaemond at package installation instead of in rc
    script

Deleted:
  head/security/courier-authlib/files/pkg-deinstall.in
  head/security/courier-authlib/files/pkg-install.in
Modified:
  head/databases/courier-authlib-mysql/Makefile
  head/databases/courier-authlib-pgsql/Makefile
  head/databases/courier-authlib-userdb/Makefile
  head/databases/courier-authlib-usergdbm/Makefile
  head/mail/courier-authlib-vchkpw/Makefile
  head/net/courier-authlib-ldap/Makefile
  head/security/courier-authlib-base/Makefile
  head/security/courier-authlib/Makefile
  head/security/courier-authlib/files/courier-authdaemond.in
  head/security/courier-authlib/files/patch-Makefile.in
  head/security/courier-authlib/pkg-plist-base
  head/security/courier-authlib/pkg-plist-ldap
  head/security/courier-authlib/pkg-plist-mysql
  head/security/courier-authlib/pkg-plist-pgsql
  head/security/courier-authlib/pkg-plist-userdb
  head/security/courier-authlib/pkg-plist-vchkpw

Modified: head/databases/courier-authlib-mysql/Makefile
==============================================================================
--- head/databases/courier-authlib-mysql/Makefile	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/databases/courier-authlib-mysql/Makefile	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,6 +1,7 @@
 # Created by: Yarema <yds@CoolRat.org>
 # $FreeBSD$
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-mysql
 
 COMMENT=	MySQL support for the Courier authentication library

Modified: head/databases/courier-authlib-pgsql/Makefile
==============================================================================
--- head/databases/courier-authlib-pgsql/Makefile	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/databases/courier-authlib-pgsql/Makefile	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,6 +1,7 @@
 # Created by: Yarema <yds@CoolRat.org>
 # $FreeBSD$
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-pgsql
 
 COMMENT=	PostgreSQL support for the Courier authentication library

Modified: head/databases/courier-authlib-userdb/Makefile
==============================================================================
--- head/databases/courier-authlib-userdb/Makefile	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/databases/courier-authlib-userdb/Makefile	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,6 +1,7 @@
 # Created by: Yarema <yds@CoolRat.org>
 # $FreeBSD$
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-userdb
 
 COMMENT=	Userdb support for the Courier authentication library

Modified: head/databases/courier-authlib-usergdbm/Makefile
==============================================================================
--- head/databases/courier-authlib-usergdbm/Makefile	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/databases/courier-authlib-usergdbm/Makefile	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,6 +1,7 @@
 # Created by: Yarema <yds@CoolRat.org>
 # $FreeBSD$
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-usergdbm
 
 COMMENT=	Userdb support for the Courier authentication library

Modified: head/mail/courier-authlib-vchkpw/Makefile
==============================================================================
--- head/mail/courier-authlib-vchkpw/Makefile	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/mail/courier-authlib-vchkpw/Makefile	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,6 +1,7 @@
 # Created by: Yarema <yds@CoolRat.org>
 # $FreeBSD$
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-vchkpw
 
 COMMENT=	Vpopmail/vchkpw support for the Courier authentication library

Modified: head/net/courier-authlib-ldap/Makefile
==============================================================================
--- head/net/courier-authlib-ldap/Makefile	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/net/courier-authlib-ldap/Makefile	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,7 +1,7 @@
 # Created by: Yarema <yds@CoolRat.org>
 # $FreeBSD$
 
-PORTREVISION=	1
+PORTREVISION=	2
 PKGNAMESUFFIX=	-ldap
 
 COMMENT=	LDAP support for the Courier authentication library

Modified: head/security/courier-authlib-base/Makefile
==============================================================================
--- head/security/courier-authlib-base/Makefile	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib-base/Makefile	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,6 +1,7 @@
 # Created by: Oliver Lehmann <oliver@FreeBSD.org>
 # $FreeBSD$
 
+PORTREVISION=	1
 PKGNAMESUFFIX=	-base
 
 COMMENT=	Courier authentication library base

Modified: head/security/courier-authlib/Makefile
==============================================================================
--- head/security/courier-authlib/Makefile	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/Makefile	Sun Sep  7 16:12:36 2014	(r367564)
@@ -3,6 +3,7 @@
 
 PORTNAME=	courier-authlib
 PORTVERSION=	0.66.1
+PORTREVISION?=	0
 CATEGORIES?=	security mail
 .if defined(PKGNAMESUFFIX)
 MASTER_SITES=	SF/courier/authlib/${PORTVERSION}
@@ -30,18 +31,13 @@ OPTIONS_DEFINE+=	GDBM
 
 .else	# !defined(PKGNAMESUFFIX)
 
-USES=		iconv gmake perl5 tar:bzip2
+USES=		iconv gmake libtool perl5 tar:bzip2
 USE_AUTOTOOLS=	libltdl
 GNU_CONFIGURE=	yes
 USE_SUBMAKE=	yes
-USE_LDCONFIG=	${PREFIX}/lib/${PORTNAME}
-#slave ports should have different UNIQUENAME, it is utilized by USE_LDCONFIG
-UNIQUENAME=	${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}
 
 MAILOWN=	courier
 MAILGRP=	courier
-MAILUID=	465
-MAILGID=	465
 LOCALSTATEDIR=	/var
 AUTHDAEMONVAR=	${LOCALSTATEDIR}/run/authdaemond
 
@@ -49,11 +45,10 @@ VPOPMAILDIR?=	${LOCALBASE}/vpopmail
 USERDB?=	${PREFIX}/etc/userdb
 
 CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-MAKE_ENV:=	${CONFIGURE_ENV}
+LIBS+=		-L${LOCALBASE}/lib
 
 CONFIGURE_ARGS=	--enable-unicode \
-		--enable-ltdl-install=no \
+		--disable-static \
 		--without-authcustom \
 		--without-authshadow \
 		--without-authpwd \
@@ -64,31 +59,26 @@ CONFIGURE_ARGS=	--enable-unicode \
 		--cache-file=${WRKDIR}/courier-authlib.cache \
 		--without-authsqlite
 
-INSTALL_TARGET=	install-strip install-configure
+INSTALL_TARGET=	install-strip
 
 DESCR=		${PKGDIR}/pkg-descr${PKGNAMESUFFIX}
 PLIST=		${PKGDIR}/pkg-plist${PKGNAMESUFFIX:S/gdbm/db/}
 
+PLIST_SUB+=	MAILOWN=${MAILOWN} MAILGRP=${MAILGRP}
+
 AUTHMOD=	auth${PKGNAMESUFFIX:S/-//:S/gdbm/db/}
 
 .if ${AUTHMOD} == authbase
-RUN_DEPENDS+=	${LOCALBASE}/share/sysconftool/sysconftool:${PORTSDIR}/devel/sysconftool
-CONFIGURE_ARGS+=--with-base --with-authpam
-
-MAN1=		courierlogger.1 authtest.1
+CONFIGURE_ARGS+=--with-base --with-authpam --with-authpipe
 
-MAN3=		authlib.3 auth_generic.3 auth_login.3 auth_getuserinfo.3 \
-		auth_enumerate.3 auth_passwd.3 auth_getoption.3 auth_sasl.3 \
-		auth_sasl_ex.3
+USERS=		${MAILOWN}
+GROUPS=		${MAILGRP}
 
 DOCS=		AUTHORS COPYING ChangeLog INSTALL NEWS README \
 		README.authdebug.html README_authlib.html
 
-PLIST_SUB+=	MAILOWN=${MAILOWN} MAILGRP=${MAILGRP} \
-		MAILUID=${MAILUID} MAILGID=${MAILGID} \
-		AUTHDAEMONVAR=${AUTHDAEMONVAR}
-SUB_LIST:=	${PLIST_SUB}
-SUB_FILES+=	pkg-install pkg-deinstall
+PLIST_SUB+=	AUTHDAEMONVAR=${AUTHDAEMONVAR}
+SUB_LIST+=	AUTHDAEMONVAR=${AUTHDAEMONVAR}
 
 .if defined(WITH_AUTHPIPE_PROG)
 CONFIGURE_ARGS+=--with-pipeprog=${WITH_AUTHPIPE_PROG}
@@ -96,12 +86,11 @@ CONFIGURE_ARGS+=--with-pipeprog=${WITH_A
 
 .else
 RUN_DEPENDS+=	courierauthconfig:${PORTSDIR}/security/courier-authlib-base
-CONFIGURE_ARGS+=--without-base --without-authpam
+CONFIGURE_ARGS+=--without-base --without-authpam --without-authpipe
 REMOVE_SUBDIRS+=liblock liblog
 .endif
 
 .if ${AUTHMOD} == authuserdb
-MAN8=		makeuserdb.8 userdb.8 userdbpw.8 pw2userdb.8
 .if ${PKGNAMESUFFIX} == -usergdbm
 CONFLICTS+=	${PORTNAME}-userdb-0.*
 LIB_DEPENDS+=	libgdbm.so:${PORTSDIR}/databases/gdbm
@@ -177,7 +166,6 @@ pre-everything::
 
 post-patch:
 	@${REINPLACE_CMD} -e 's|$$VPOPMAILLIBS|& -lcrypt|g;  \
-		s|^\(INSTALL_STRIP_PROGRAM=\).*$$|\1"$${INSTALL_PROGRAM} -s"| ; \
 		s|mysql_connect|mysql_real_connect|g' \
 		${WRKSRC}/*/configure \
 		${WRKSRC}/configure
@@ -185,9 +173,6 @@ post-patch:
 	@${REINPLACE_CMD} -E 's,(^(ac_subdirs_all|subdirs).*)${subdir},\1,g' \
 		${WRKSRC}/configure
 .endfor
-	@${REINPLACE_CMD} -e 's|$$(INSTALL_DATA) \(.$$$$file.\)|${INSTALL_MAN} \1|' \
-		${WRKSRC}/*/Makefile.in \
-		${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e 's|^\(DEFAULTOPTIONS=\)""$$|\1"wbnodsn=1"|' \
 		-e 's|@ALLMODULES@|authuserdb authvchkpw authpam authldap authmysql authpgsql|' \
 		${WRKSRC}/authdaemonrc.in
@@ -199,18 +184,12 @@ pre-configure:
 		${RM} -f "${WRKDIR}/courier-authlib.cache" ; \
 	fi
 
-.if ${PKGNAMESUFFIX} == "-base"
-pre-install:
-	@PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-.endif	# ${PKGNAMESUFFIX} == "-base"
-
 post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${INSTALL} ${_SHROWNGRP} -d ${STAGEDIR}${DOCSDIR}
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
 .for f in ${DOCS}
 	${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
 .endfor
-.endif
+
 .endif	# !defined(PKGNAMESUFFIX)
 
 .include <bsd.port.post.mk>

Modified: head/security/courier-authlib/files/courier-authdaemond.in
==============================================================================
--- head/security/courier-authlib/files/courier-authdaemond.in	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/files/courier-authdaemond.in	Sun Sep  7 16:12:36 2014	(r367564)
@@ -12,8 +12,6 @@ exec_prefix="${prefix}"
 sysconfdir="${prefix}/etc/authlib"
 sbindir="${exec_prefix}/sbin"
 bindir="${exec_prefix}/bin"
-libdir="${prefix}/lib/courier-authlib"
-libexecdir="${prefix}/libexec/courier-authlib"
 authdaemonvar="%%AUTHDAEMONVAR%%"
 
 # Define these courier_authdaemond_* variables in one of these files:
@@ -31,31 +29,14 @@ name="courier_authdaemond"
 rcvar=courier_authdaemond_enable
 
 command="${sbindir}/authdaemond"
-procname="${sbindir}/courierlogger"
 pidfile="${authdaemonvar}/pid"
 socket="${authdaemonvar}/socket"
 
-start_precmd="${name}_prestart"
 start_cmd="${command} start"
-stop_precmd="echo 'Stopping ${name}.'"
 stop_cmd="${command} stop"
 stop_postcmd="rm -f ${pidfile} ${pidfile}.lock ${socket}"
+required_dirs="${authdaemonvar}"
 required_files="${sysconfdir}/authdaemonrc"
 
-courier_authdaemond_prestart()
-{
-	if [ ! -d "${authdaemonvar}" ] ; then
-		install -o %%MAILOWN%% -g %%MAILGRP%% -m 0750 -d "${authdaemonvar}"
-		if [ $? -ne 0 ] ; then
-			echo "Creating ${authdaemonvar} with the correct permissions was not possible!"
-			return 1
-		fi
-	fi
-	/sbin/ldconfig -m "${libdir}"
-	echo "Starting ${name}."
-}
-
 load_rc_config $name
 run_rc_command "$1"
-
-

Modified: head/security/courier-authlib/files/patch-Makefile.in
==============================================================================
--- head/security/courier-authlib/files/patch-Makefile.in	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/files/patch-Makefile.in	Sun Sep  7 16:12:36 2014	(r367564)
@@ -113,17 +113,6 @@
  man_MANS = $(man1) $(man3) auth_sasl_ex.3
  BUILT1 = authlib.html authldaprc.h authmysqlrc.h authpgsqlrc.h authpiperc.h \
  	authdaemonrc.h packageversion.h \
-@@ -935,8 +956,8 @@
- 	test -z "$$list2" || { \
- 	  echo " $(MKDIR_P) '$(DESTDIR)$(pkglibdir)'"; \
- 	  $(MKDIR_P) "$(DESTDIR)$(pkglibdir)" || exit 1; \
--	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \
--	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \
-+	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) -m 0444 $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(pkglibdir)'"; \
-+	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) -m 0444 $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(pkglibdir)"; \
- 	}
- 
- uninstall-pkglibLTLIBRARIES:
 @@ -989,6 +1010,9 @@
  libauthuserdb.la: $(libauthuserdb_la_OBJECTS) $(libauthuserdb_la_DEPENDENCIES) $(EXTRA_libauthuserdb_la_DEPENDENCIES) 
  	$(AM_V_CCLD)$(libauthuserdb_la_LINK)  $(libauthuserdb_la_OBJECTS) $(libauthuserdb_la_LIBADD) $(LIBS)
@@ -151,28 +140,6 @@
  
  .c.o:
  @am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
-@@ -1328,8 +1355,8 @@
- 	sed 'N;N;s,\n, ,g' | { \
- 	list=; while read file base inst; do \
- 	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
--	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
--	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
-+	    echo " install  -o root -g wheel -m 444 '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
-+	    install  -o root -g wheel -m 444 "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
- 	  fi; \
- 	done; \
- 	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
-@@ -1371,8 +1398,8 @@
- 	sed 'N;N;s,\n, ,g' | { \
- 	list=; while read file base inst; do \
- 	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
--	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
--	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
-+	    echo " install  -o root -g wheel -m 444 '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
-+	    install  -o root -g wheel -m 444 "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
- 	  fi; \
- 	done; \
- 	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
 @@ -1771,18 +1798,26 @@
  
  info-am:
@@ -208,7 +175,7 @@
  install-html: install-html-recursive
  
  install-html-am:
-@@ -1862,6 +1897,12 @@
+@@ -1862,14 +1897,20 @@
  	uninstall-sbinPROGRAMS uninstall-sbinSCRIPTS
  
  
@@ -221,6 +188,30 @@
  authpgsqllib.lo: authpgsqllib.c authpgsqlrc.h
  
  @HAVE_AUTHPGSQL_TRUE@install-authpgsqlrc:
+ @HAVE_AUTHPGSQL_TRUE@	$(mkinstalldirs) $(DESTDIR)`dirname @authpgsqlrc@` || :
+ @HAVE_AUTHPGSQL_TRUE@	$(INSTALL_DATA) -m 660 $(srcdir)/authpgsqlrc \
+-@HAVE_AUTHPGSQL_TRUE@		$(DESTDIR)@authpgsqlrc@.dist
+-@HAVE_AUTHPGSQL_TRUE@	-chown @mailuser@ $(DESTDIR)@authpgsqlrc@.dist
+-@HAVE_AUTHPGSQL_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authpgsqlrc@.dist
++@HAVE_AUTHPGSQL_TRUE@		$(DESTDIR)@authpgsqlrc@.sample
++@HAVE_AUTHPGSQL_TRUE@	-chown @mailuser@ $(DESTDIR)@authpgsqlrc@.sample
++@HAVE_AUTHPGSQL_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authpgsqlrc@.sample
+ 
+ @HAVE_AUTHPGSQL_TRUE@uninstall-authpgsqlrc:
+ @HAVE_AUTHPGSQL_TRUE@	rm -f $(DESTDIR)@authpgsqlrc@.dist
+@@ -1888,9 +1929,9 @@
+ @HAVE_LDAP_TRUE@install-authldaprc:
+ @HAVE_LDAP_TRUE@	$(mkinstalldirs) $(DESTDIR)`dirname @authldaprc@` || :
+ @HAVE_LDAP_TRUE@	$(INSTALL_DATA) -m 660 $(srcdir)/authldaprc \
+-@HAVE_LDAP_TRUE@		$(DESTDIR)@authldaprc@.dist
+-@HAVE_LDAP_TRUE@	-chown @mailuser@ $(DESTDIR)@authldaprc@.dist
+-@HAVE_LDAP_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authldaprc@.dist
++@HAVE_LDAP_TRUE@		$(DESTDIR)@authldaprc@.sample
++@HAVE_LDAP_TRUE@	-chown @mailuser@ $(DESTDIR)@authldaprc@.sample
++@HAVE_LDAP_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authldaprc@.sample
+ 
+ @HAVE_LDAP_TRUE@uninstall-authldaprc:
+ @HAVE_LDAP_TRUE@	rm -f $(DESTDIR)@authldaprc@.dist
 @@ -1901,6 +1942,19 @@
  @HAVE_LDAP_FALSE@uninstall-authldaprc:
  @HAVE_LDAP_FALSE@	@:
@@ -228,7 +219,7 @@
 +@HAVE_LDAP_TRUE@install-ldapschema:
 +@HAVE_LDAP_TRUE@	$(mkinstalldirs) ${DESTDIR}${sysconfdir}/openldap/schema
 +@HAVE_LDAP_TRUE@	$(INSTALL_DATA) -m 0444 $(srcdir)/authldap.schema \
-+@HAVE_LDAP_TRUE@		${DESTDIR}${sysconfdir}/openldap/schema/authldap.schema.default
++@HAVE_LDAP_TRUE@		${DESTDIR}${sysconfdir}/openldap/schema/authldap.schema.sample
 +@HAVE_LDAP_TRUE@#	if test ! -f ${sysconfdir}/openldap/schema/authldap.schema ; then \
 +@HAVE_LDAP_TRUE@#		$(INSTALL_DATA) -m 0444 $(srcdir)/authldap.schema \
 +@HAVE_LDAP_TRUE@#			${sysconfdir}/openldap/schema/authldap.schema ; \
@@ -241,6 +232,32 @@
  authldaprc.h:
  	echo "#define AUTHLDAPRC \"@authldaprc@\"" >authldaprc.h
  
+@@ -1909,9 +1963,9 @@
+ @HAVE_AUTHMYSQL_TRUE@install-authmysqlrc:
+ @HAVE_AUTHMYSQL_TRUE@	$(mkinstalldirs) $(DESTDIR)`dirname @authmysqlrc@` || :
+ @HAVE_AUTHMYSQL_TRUE@	$(INSTALL_DATA) -m 660 $(srcdir)/authmysqlrc \
+-@HAVE_AUTHMYSQL_TRUE@		$(DESTDIR)@authmysqlrc@.dist
+-@HAVE_AUTHMYSQL_TRUE@	-chown @mailuser@ $(DESTDIR)@authmysqlrc@.dist
+-@HAVE_AUTHMYSQL_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authmysqlrc@.dist
++@HAVE_AUTHMYSQL_TRUE@		$(DESTDIR)@authmysqlrc@.sample
++@HAVE_AUTHMYSQL_TRUE@	-chown @mailuser@ $(DESTDIR)@authmysqlrc@.sample
++@HAVE_AUTHMYSQL_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authmysqlrc@.sample
+ 
+ @HAVE_AUTHMYSQL_TRUE@uninstall-authmysqlrc:
+ @HAVE_AUTHMYSQL_TRUE@	rm -f $(DESTDIR)@authmysqlrc@.dist
+@@ -1930,9 +1984,9 @@
+ @HAVE_AUTHSQLITE_TRUE@install-authsqliterc:
+ @HAVE_AUTHSQLITE_TRUE@	$(mkinstalldirs) $(DESTDIR)`dirname @authsqliterc@` || :
+ @HAVE_AUTHSQLITE_TRUE@	$(INSTALL_DATA) -m 660 $(srcdir)/authsqliterc \
+-@HAVE_AUTHSQLITE_TRUE@		$(DESTDIR)@authsqliterc@.dist
+-@HAVE_AUTHSQLITE_TRUE@	-chown @mailuser@ $(DESTDIR)@authsqliterc@.dist
+-@HAVE_AUTHSQLITE_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authsqliterc@.dist
++@HAVE_AUTHSQLITE_TRUE@		$(DESTDIR)@authsqliterc@.sample
++@HAVE_AUTHSQLITE_TRUE@	-chown @mailuser@ $(DESTDIR)@authsqliterc@.sample
++@HAVE_AUTHSQLITE_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authsqliterc@.sample
+ 
+ @HAVE_AUTHSQLITE_TRUE@uninstall-authsqliterc:
+ @HAVE_AUTHSQLITE_TRUE@	rm -f $(DESTDIR)@authsqliterc@.dist
 @@ -1951,16 +2005,22 @@
  authpiperc.h:
  	echo "#define PIPE_PROGRAM \"@authProg@\"" >authpiperc.h
@@ -255,19 +272,19 @@
 +@HAVE_BASE_TRUE@install-authdaemonrc:
 +@HAVE_BASE_TRUE@	$(mkinstalldirs) $(DESTDIR)`dirname @authdaemonrc@`
 +@HAVE_BASE_TRUE@	sed 's/@ALLMODULES@/$(modules:lib%.la=%)/' <authdaemonrc >authdaemonrc.tmp
-+@HAVE_BASE_TRUE@	$(INSTALL_DATA) -m 660 authdaemonrc.tmp $(DESTDIR)@authdaemonrc@.dist
++@HAVE_BASE_TRUE@	$(INSTALL_DATA) -m 660 authdaemonrc.tmp $(DESTDIR)@authdaemonrc@.sample
 +@HAVE_BASE_TRUE@	rm -f authdaemonrc.tmp
-+@HAVE_BASE_TRUE@	-chown @mailuser@ $(DESTDIR)@authdaemonrc@.dist
-+@HAVE_BASE_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authdaemonrc@.dist
-+
++@HAVE_BASE_TRUE@	-chown @mailuser@ $(DESTDIR)@authdaemonrc@.sample
++@HAVE_BASE_TRUE@	-chgrp @mailgroup@ $(DESTDIR)@authdaemonrc@.sample
+ 
+-uninstall-authdaemonrc:
+-	rm -f $(DESTDIR)@authdaemonrc@.dist
 +@HAVE_BASE_FALSE@install-authdaemonrc:
 +@HAVE_BASE_FALSE@	@:
 +
 +@HAVE_BASE_TRUE@uninstall-authdaemonrc:
 +@HAVE_BASE_TRUE@	rm -f $(DESTDIR)@authdaemonrc@.dist
- 
--uninstall-authdaemonrc:
--	rm -f $(DESTDIR)@authdaemonrc@.dist
++
 +@HAVE_BASE_FALSE@uninstall-authdaemonrc:
 +@HAVE_BASE_FALSE@	@:
  
@@ -316,7 +333,7 @@
  		$(INSTALL_SCRIPT) userdb/pw2userdb \
  				$(DESTDIR)$(sbindir)/pw2userdb ; \
  		$(INSTALL_SCRIPT) userdb/makeuserdb \
-@@ -2033,9 +2095,10 @@
+@@ -2033,9 +2099,10 @@
  				$(DESTDIR)$(sbindir)/userdb-test-cram-md5
  
  uninstall-hook: uninstall-authldaprc uninstall-authdaemonrc uninstall-authmysqlrc uninstall-authpgsqlrc uninstall-authsqliterc
@@ -328,7 +345,7 @@
  				$(DESTDIR)$(sbindir)/pw2userdb \
  				$(DESTDIR)$(sbindir)/makeuserdb \
  				$(DESTDIR)$(sbindir)/userdb \
-@@ -2046,7 +2109,7 @@
+@@ -2046,7 +2113,7 @@
  	$(SHELL) ./config.status --file=authlib.html
  
  authlib.3: authlib.3.in
@@ -336,21 +353,4 @@
 +@HAVE_BASE_TRUE@	$(SHELL) ./config.status --file=authlib.3
  
  @HAVE_SGML_TRUE@authpasswd.html: authpasswd.sgml libs/docbook/sgml2html
- @HAVE_SGML_TRUE@	libs/docbook/sgml2html authpasswd.sgml authpasswd.html
-@@ -2131,11 +2194,11 @@
- 	@SHELL@ authmigrate
- 
- install-configure:
--	test -f $(DESTDIR)@authdaemonrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authdaemonrc@.dist || true
--	test -f $(DESTDIR)@authmysqlrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authmysqlrc@.dist || true
--	test -f $(DESTDIR)@authpgsqlrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authpgsqlrc@.dist || true
--	test -f $(DESTDIR)@authldaprc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authldaprc@.dist || true
--	test -f $(DESTDIR)@authsqliterc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authsqliterc@.dist || true
-+@HAVE_BASE_TRUE@	test -f $(DESTDIR)@authdaemonrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authdaemonrc@.dist || true
-+@HAVE_AUTHMYSQL_TRUE@	test -f $(DESTDIR)@authmysqlrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authmysqlrc@.dist || true
-+@HAVE_AUTHPGSQL_TRUE@	test -f $(DESTDIR)@authpgsqlrc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authpgsqlrc@.dist || true
-+@HAVE_LDAP_TRUE@	test -f $(DESTDIR)@authldaprc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authldaprc@.dist || true
-+@HAVE_AUTHSQLITE_TRUE@	test -f $(DESTDIR)@authsqliterc@.dist && @SYSCONFTOOL@ $(DESTDIR)@authsqliterc@.dist || true
- 
- # For maintainer's use only
- 
+ @HAVE_SGML_TRUE@	libs/docbook/sgml2html authpasswd.sgml authpasswd.html 

Modified: head/security/courier-authlib/pkg-plist-base
==============================================================================
--- head/security/courier-authlib/pkg-plist-base	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/pkg-plist-base	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,37 +1,30 @@
-@unexec [ -x %D/sbin/authdaemond ] && %D/sbin/authdaemond stop || true
-@exec pw groupshow %%MAILGRP%% 2>/dev/null || pw groupadd %%MAILGRP%% -g %%MAILUID%% -h -
-@exec pw user show %%MAILOWN%% 2>/dev/null || pw useradd %%MAILOWN%% -u %%MAILUID%% -g %%MAILGID%% -h - -d /var/spool/courier -s /sbin/nologin -c "Courier Mail System"
 bin/courierauthconfig
-@unexec cmp -s %D/etc/authlib/authdaemonrc.dist %D/etc/authlib/authdaemonrc && rm -f %D/etc/authlib/authdaemonrc 2>/dev/null || true
-etc/authlib/authdaemonrc.dist
-@exec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authdaemonrc.dist && chmod 0600 %D/etc/authlib/authdaemonrc
-@exec chown -Rh %%MAILOWN%%:%%MAILGRP%% %D/etc/authlib && chmod 0750 %D/etc/authlib
+@sample(%%MAILOWN%%,%%MAILGRP%%,660) etc/authlib/authdaemonrc.sample
 include/courier_auth_config.h
 include/courierauth.h
 include/courierauthdebug.h
 include/courierauthsasl.h
 include/courierauthsaslclient.h
 include/courierauthstaticlist.h
-lib/courier-authlib/libcourierauth.a
-lib/courier-authlib/libcourierauth.la
 lib/courier-authlib/libcourierauth.so
-lib/courier-authlib/libcourierauthcommon.a
-lib/courier-authlib/libcourierauthcommon.la
 lib/courier-authlib/libcourierauthcommon.so
-lib/courier-authlib/libcourierauthsasl.a
-lib/courier-authlib/libcourierauthsasl.la
 lib/courier-authlib/libcourierauthsasl.so
-lib/courier-authlib/libcourierauthsaslclient.a
-lib/courier-authlib/libcourierauthsaslclient.la
 lib/courier-authlib/libcourierauthsaslclient.so
-lib/courier-authlib/libauthpam.a
-lib/courier-authlib/libauthpam.la
 lib/courier-authlib/libauthpam.so
-lib/courier-authlib/libauthpipe.a
-lib/courier-authlib/libauthpipe.la
 lib/courier-authlib/libauthpipe.so
 libexec/courier-authlib/authdaemond
 libexec/courier-authlib/authsystem.passwd
+man/man1/authtest.1.gz
+man/man1/%%MAILOWN%%logger.1.gz
+man/man3/auth_enumerate.3.gz
+man/man3/auth_generic.3.gz
+man/man3/auth_getoption.3.gz
+man/man3/auth_getuserinfo.3.gz
+man/man3/auth_login.3.gz
+man/man3/auth_passwd.3.gz
+man/man3/auth_sasl.3.gz
+man/man3/auth_sasl_ex.3.gz
+man/man3/authlib.3.gz
 sbin/authdaemond
 sbin/authenumerate
 sbin/authtest
@@ -45,7 +38,7 @@ sbin/courierlogger
 %%PORTDOCS%%%%DOCSDIR%%/README.authdebug.html
 %%PORTDOCS%%%%DOCSDIR%%/README_authlib.html
 %%PORTDOCS%%@dirrm %%DOCSDIR%%
-@unexec rm -rf %%AUTHDAEMONVAR%% 2>/dev/null || true
+@dirrmtry(%%MAILOWN%%,%%MAILGRP%%,750) %%AUTHDAEMONVAR%%
 @dirrmtry etc/authlib
-@dirrm libexec/courier-authlib
+@dirrm(%%MAILOWN%%,%%MAILGRP%%,755) libexec/courier-authlib
 @dirrm lib/courier-authlib

Modified: head/security/courier-authlib/pkg-plist-ldap
==============================================================================
--- head/security/courier-authlib/pkg-plist-ldap	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/pkg-plist-ldap	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,11 +1,5 @@
-@unexec cmp -s %D/etc/authlib/authldaprc.dist %D/etc/authlib/authldaprc && rm -f %D/etc/authlib/authldaprc 2>/dev/null || true
-etc/authlib/authldaprc.dist
-@exec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authldaprc.dist && chmod 0600 %D/etc/authlib/authldaprc
-@unexec cmp -s %D/etc/openldap/schema/authldap.schema.default %D/etc/openldap/schema/authldap.schema && rm -f %D/etc/openldap/schema/authldap.schema 2>/dev/null || true
-etc/openldap/schema/authldap.schema.default
-@exec [ -f %D/etc/openldap/schema/authldap.schema ] || cp -p %D/etc/openldap/schema/authldap.schema.default %D/etc/openldap/schema/authldap.schema
-lib/courier-authlib/libauthldap.a
-lib/courier-authlib/libauthldap.la
+@sample(%%MAILOWN%%,%%MAILGRP%%,660) etc/authlib/authldaprc.sample
+@sample etc/openldap/schema/authldap.schema.sample
 lib/courier-authlib/libauthldap.so
 %%PORTDOCS%%%%DOCSDIR%%/README.ldap
 @dirrmtry etc/openldap/schema

Modified: head/security/courier-authlib/pkg-plist-mysql
==============================================================================
--- head/security/courier-authlib/pkg-plist-mysql	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/pkg-plist-mysql	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,9 +1,4 @@
-@unexec cmp -s %D/etc/authlib/authmysqlrc.dist %D/etc/authlib/authmysqlrc && rm -f %D/etc/authlib/authmysqlrc 2>/dev/null || true
-etc/authlib/authmysqlrc.dist
-@exec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authmysqlrc.dist && chmod 0600 %D/etc/authlib/authmysqlrc
-lib/courier-authlib/libauthmysql.a
-lib/courier-authlib/libauthmysql.la
+@sample(%%MAILOWN%%,%%MAILGRP%%,660) etc/authlib/authmysqlrc.sample
 lib/courier-authlib/libauthmysql.so
 %%PORTDOCS%%%%DOCSDIR%%/README.authmysql.html
 %%PORTDOCS%%%%DOCSDIR%%/README.authmysql.myownquery
-

Modified: head/security/courier-authlib/pkg-plist-pgsql
==============================================================================
--- head/security/courier-authlib/pkg-plist-pgsql	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/pkg-plist-pgsql	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,8 +1,3 @@
-@unexec cmp -s %D/etc/authlib/authpgsqlrc.dist %D/etc/authlib/authpgsqlrc && rm -f %D/etc/authlib/authpgsqlrc 2>/dev/null || true
-etc/authlib/authpgsqlrc.dist
-@exec %%LOCALBASE%%/share/sysconftool/sysconftool %D/etc/authlib/authpgsqlrc.dist && chmod 0600 %D/etc/authlib/authpgsqlrc
-lib/courier-authlib/libauthpgsql.a
-lib/courier-authlib/libauthpgsql.la
+@sample(%%MAILOWN%%,%%MAILGRP%%,660) etc/authlib/authpgsqlrc.sample
 lib/courier-authlib/libauthpgsql.so
 %%PORTDOCS%%%%DOCSDIR%%/README.authpostgres.html
-

Modified: head/security/courier-authlib/pkg-plist-userdb
==============================================================================
--- head/security/courier-authlib/pkg-plist-userdb	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/pkg-plist-userdb	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,11 +1,12 @@
+lib/courier-authlib/libauthuserdb.so
 libexec/courier-authlib/makedatprog
+man/man8/makeuserdb.8.gz
+man/man8/pw2userdb.8.gz
+man/man8/userdb.8.gz
+man/man8/userdbpw.8.gz
 sbin/makeuserdb
 sbin/pw2userdb
 sbin/userdb
 sbin/userdb-test-cram-md5
 sbin/userdbpw
 sbin/vchkpw2userdb
-lib/courier-authlib/libauthuserdb.a
-lib/courier-authlib/libauthuserdb.la
-lib/courier-authlib/libauthuserdb.so
-

Modified: head/security/courier-authlib/pkg-plist-vchkpw
==============================================================================
--- head/security/courier-authlib/pkg-plist-vchkpw	Sun Sep  7 16:04:42 2014	(r367563)
+++ head/security/courier-authlib/pkg-plist-vchkpw	Sun Sep  7 16:12:36 2014	(r367564)
@@ -1,3 +1 @@
-lib/courier-authlib/libauthvchkpw.a
-lib/courier-authlib/libauthvchkpw.la
 lib/courier-authlib/libauthvchkpw.so



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409071612.s87GCbO8065823>