Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jul 2014 16:00:59 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r362814 - head/sysutils/gosa
Message-ID:  <201407241600.s6OG0xiQ014004@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Thu Jul 24 16:00:58 2014
New Revision: 362814
URL: http://svnweb.freebsd.org/changeset/ports/362814
QAT: https://qat.redports.org/buildarchive/r362814/

Log:
  - Add staging support
  - Convert to new options framework, USES=tar:bzip2

Modified:
  head/sysutils/gosa/Makefile
  head/sysutils/gosa/pkg-plist

Modified: head/sysutils/gosa/Makefile
==============================================================================
--- head/sysutils/gosa/Makefile	Thu Jul 24 16:00:33 2014	(r362813)
+++ head/sysutils/gosa/Makefile	Thu Jul 24 16:00:58 2014	(r362814)
@@ -15,7 +15,7 @@ COMMENT=	Web Based LDAP Administration P
 RUN_DEPENDS=	p5-Crypt-SmbHash>=0.12:${PORTSDIR}/security/p5-Crypt-SmbHash \
 		pecl-imagick>=2.2.2:${PORTSDIR}/graphics/pecl-imagick
 
-USE_BZIP2=	yes
+USES=		tar:bzip2
 USE_PHP=	gettext iconv imap ldap mbstring mhash mysql pcre posix \
 		session spl xml zlib
 
@@ -24,11 +24,10 @@ PKGMESSAGE=	${WRKDIR}/pkg-message
 REINPLACE_ARGS=	-i ""
 SUB_FILES=	pkg-message
 SUB_LIST+=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
+PLIST_SUB+=	WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
 
-MAN1=		update-gosa.1
-MAN5=		gosa.conf.5
+OPTIONS_DEFINE=	DOCS
 
-NO_STAGE=	yes
 post-patch:
 	${REINPLACE_CMD} \
 		-e 's!"/etc/gosa"!"${ETCDIR}"!g' \
@@ -49,29 +48,17 @@ post-patch:
 	${FIND} ${WRKSRC} -type f -name '*.orig' -exec ${RM} -f {} +
 
 do-install:
-	${MKDIR} ${WWWDIR}
+	@${MKDIR} ${STAGEDIR}${WWWDIR}
 	(cd ${WRKSRC} && ${COPYTREE_SHARE} \
-		"html ihtml include locale plugins setup" ${WWWDIR})
-
-	${INSTALL_SCRIPT} ${WRKSRC}/update-gosa   ${PREFIX}/sbin/
-	${INSTALL_MAN}    ${WRKSRC}/update-gosa.1 ${MANPREFIX}/man/man1/
-	${INSTALL_MAN}    ${WRKSRC}/gosa.conf.5   ${MANPREFIX}/man/man5/
-
-	${MKDIR} ${EXAMPLESDIR}
-	(cd ${WRKSRC} && ${COPYTREE_SHARE} "contrib" ${EXAMPLESDIR})
-
-	${MKDIR} ${ETCDIR}
-	${INSTALL} -d -o ${WWWOWN} -g ${WWWGRP} /var/spool/gosa
-
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}
-	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${DOCSDIR})
-.  for i in AUTHORS COPYING Changelog FAQ INSTALL README README.safemode
-	${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.  endfor
-.endif
-
-post-install:
-	${CAT} ${PKGMESSAGE}
+		"html ihtml include locale plugins setup" ${STAGEDIR}${WWWDIR})
+	${INSTALL_SCRIPT} ${WRKSRC}/update-gosa ${STAGEDIR}${PREFIX}/sbin
+	${INSTALL_MAN} ${WRKSRC}/update-gosa.1 ${STAGEDIR}${MANPREFIX}/man/man1
+	${INSTALL_MAN} ${WRKSRC}/gosa.conf.5 ${STAGEDIR}${MANPREFIX}/man/man5
+	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
+	(cd ${WRKSRC} && ${COPYTREE_SHARE} "contrib" ${STAGEDIR}${EXAMPLESDIR})
+	@${MKDIR} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${DOCSDIR}
+	(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} "*" ${STAGEDIR}${DOCSDIR})
+	(cd ${WRKSRC} && ${INSTALL_DATA} AUTHORS COPYING Changelog FAQ \
+		INSTALL README README.safemode ${STAGEDIR}${DOCSDIR})
 
 .include <bsd.port.mk>

Modified: head/sysutils/gosa/pkg-plist
==============================================================================
--- head/sysutils/gosa/pkg-plist	Thu Jul 24 16:00:33 2014	(r362813)
+++ head/sysutils/gosa/pkg-plist	Thu Jul 24 16:00:58 2014	(r362814)
@@ -1,3 +1,5 @@
+man/man1/update-gosa.1.gz
+man/man5/gosa.conf.5.gz
 sbin/update-gosa
 %%WWWDIR%%/html/autocomplete.php
 %%WWWDIR%%/html/favicon.ico



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