Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jun 2014 20:06:21 +0000 (UTC)
From:      William Grzybowski <wg@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r358634 - in head: . mail/ecartis mail/ecartis/files
Message-ID:  <201406202006.s5KK6LHg001745@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: wg
Date: Fri Jun 20 20:06:21 2014
New Revision: 358634
URL: http://svnweb.freebsd.org/changeset/ports/358634
QAT: https://qat.redports.org/buildarchive/r358634/

Log:
  mail/ecartis: support stage
  
  - Add UID/GID for this port
  - Update MASTER_SITES
  - Remove IS_INTERACTIVE
  
  PR:		190753
  Submitted by:	fullermd over-yonder net
  Approved by:	maintainer

Added:
  head/mail/ecartis/files/patch-Makefile   (contents, props changed)
  head/mail/ecartis/files/pkg-message.in   (contents, props changed)
Deleted:
  head/mail/ecartis/files/patch-aa
  head/mail/ecartis/pkg-install
Modified:
  head/GIDs
  head/UIDs
  head/mail/ecartis/Makefile
  head/mail/ecartis/pkg-descr
  head/mail/ecartis/pkg-plist

Modified: head/GIDs
==============================================================================
--- head/GIDs	Fri Jun 20 19:24:56 2014	(r358633)
+++ head/GIDs	Fri Jun 20 20:06:21 2014	(r358634)
@@ -165,6 +165,7 @@ uhub:*:411:
 drweb:*:426:
 quasselcore:*:442:
 callweaver:*:444:
+ecartis:*:450:
 courier:*:465:
 condor:*:466:
 netmon:*:467:

Modified: head/UIDs
==============================================================================
--- head/UIDs	Fri Jun 20 19:24:56 2014	(r358633)
+++ head/UIDs	Fri Jun 20 20:06:21 2014	(r358634)
@@ -170,6 +170,7 @@ uhub:*:411:411::0:0:uHub ADC Daemon:/non
 drweb:*:426:426::0:0:Dr.Web Mail Scanner:/nonexistent:/usr/sbin/nologin
 quasselcore:*:442:442::0:0:Quassel IRC User:/nonexistent:/usr/sbin/nologin
 callweaver:*:444:444::0:0:Callweaver account:/var/lib/callweaver:/usr/sbin/nologin
+ecartis:*:450:450::0:0:Ecartis Listserver:/usr/local/ecartis:/usr/sbin/nologin
 courier:*:465:465::0:0:Courier Mail Server:/nonexistent:/usr/sbin/nologin
 condor:*:466:466::0:0:& user:/home/condor:/usr/sbin/nologin
 netmon:*:467:467::0:0:Network monitor account:/var/netmon:/usr/sbin/nologin

Modified: head/mail/ecartis/Makefile
==============================================================================
--- head/mail/ecartis/Makefile	Fri Jun 20 19:24:56 2014	(r358633)
+++ head/mail/ecartis/Makefile	Fri Jun 20 20:06:21 2014	(r358634)
@@ -3,43 +3,34 @@
 
 PORTNAME=	ecartis
 PORTVERSION=	1.0.0.s20060813
+PORTREVISION=	1
 PORTEPOCH=	1
 CATEGORIES=	mail
-MASTER_SITES=	http://conducive.net/tarballs/ \
+MASTER_SITES=	ftp://ftp.ecartis.net/pub/ecartis/ \
 		http://rodrigo.osorio.free.fr/freebsd/distfiles/
 DISTNAME=	${PORTNAME}-${PORTVERSION:S/.s/-snap/}
 
 MAINTAINER=	jtrigg@spamcop.net
-COMMENT=	The Ecartis Listserver \ Mailing List Manager
+COMMENT=	The Ecartis Listserver / Mailing List Manager
 
 USES=		gmake
 
-NO_PACKAGE=	Requires ecartis uid
-IS_INTERACTIVE=	"Stops to ask to create ecartis user/group"
+USERS=		ecartis
+GROUPS=		ecartis
+
 WRKSRC=		${WRKDIR}/ecartis-1.0.0/src
+IDEST=		${STAGEDIR}${PREFIX}/${PORTNAME}
+
+SUB_FILES=	pkg-message
+PLIST_SUB+=	EC_USER=${USERS} EC_GROUP=${GROUPS}
 
-NO_STAGE=	yes
 pre-patch:
 	@${CP} ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
 
 pre-install:
-	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
-	@${MKDIR} ${PREFIX}/${PORTNAME}
-	@${CP} -R ${WRKDIR}/${PORTNAME}-1.0.0/* ${PREFIX}/ecartis
-	@${RM} -R ${PREFIX}/${PORTNAME}/src/
-	@${RM} -R ${PREFIX}/${PORTNAME}/debian/
-	@${RM} ${PREFIX}/${PORTNAME}/ecartis.dsp ${PREFIX}/${PORTNAME}/ecartis.dsw
-	@${CHOWN} -R ecartis:ecartis ${PREFIX}/${PORTNAME}/*
-
-post-install:
-	@${ECHO_MSG} "---------------------------------------------------"
-	@${ECHO_MSG} "- Thank You for installing the Ecartis Listserver -"
-	@${ECHO_MSG} "- package.  Please read the documentation located -"
-	@${ECHO_MSG} "- in ${PREFIX}/ecartis/, or online at:            -"
-	@${ECHO_MSG} "-                                                 -"
-	@${ECHO_MSG} "- http://www.ecartis.org/                         -"
-	@${ECHO_MSG} "-                                                 -"
-	@${ECHO_MSG} "- -The Ecartis Developers                         -"
-	@${ECHO_MSG} "---------------------------------------------------"
+	${MKDIR} ${IDEST}
+	cd ${WRKDIR}/${PORTNAME}-1.0.0 && ${FIND} * -print | \
+		${CPIO} -pdu --quiet ${IDEST}
+	${RM} -rf ${IDEST}/src/ ${IDEST}/debian ${IDEST}/ecartis.ds[pw]
 
 .include <bsd.port.mk>

Added: head/mail/ecartis/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/ecartis/files/patch-Makefile	Fri Jun 20 20:06:21 2014	(r358634)
@@ -0,0 +1,41 @@
+--- Makefile.dist	2006-08-13 03:50:15.000000000 -0500
++++ Makefile	2014-05-19 20:04:56.636909101 -0500
+@@ -6,8 +6,8 @@
+ # they should be set.  All of them are conditional on options set in this
+ # file, so it should be relatively easy to determine which branch is correct
+ 
+-BINDIR = ..
+-MODDIR = ../modules
++BINDIR = ${DESTDIR}${PREFIX}/ecartis
++MODDIR = ${BINDIR}/modules
+ 
+ # First things first we need to set up some various options since OS's aren't
+ # as nice about things are they could be.
+@@ -33,7 +33,7 @@
+ # Uncomment this if you are on a BSD system AND you want dynamic modules
+ # SunOS (4 and 5 both) also needs this setting.
+ #
+-#BSDMOD = 1
++BSDMOD = 1
+ 
+ # Uncomment this if you are compiling on OpenBSD with modules (BSDMOD = 1)
+ #OBSDMOD = 1
+@@ -120,7 +120,6 @@
+ ifdef BSDIMOD
+ CC=shlicc
+ else
+-CC=gcc
+ endif
+ 
+ # Warning-level flags.  Under SunOS (4 and 5), this NEEDS TO BE BLANK.
+@@ -129,9 +128,7 @@
+ #
+ # It appears that IRIX is also rather stupid, and may require this
+ # to be removed.
+-WFLAGS=-Wall -Werror
+-# Uncomment this to build with gdb symbols (comment above line)
+-#WFLAGS=-ggdb -Wall -Werror
++WFLAGS:=${CFLAGS}
+ 
+ # Now set up the initial command line.  SUNOS_5 makes this a bit wierd.
+ ifndef SUNOS_5

Added: head/mail/ecartis/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/mail/ecartis/files/pkg-message.in	Fri Jun 20 20:06:21 2014	(r358634)
@@ -0,0 +1,7 @@
+Thank You for installing the Ecartis Listserver package.  Please
+read the documentation located in %%PREFIX%%/ecartis/
+or online at:
+
+http://www.ecartis.net/
+
+-- The Ecartis Developers

Modified: head/mail/ecartis/pkg-descr
==============================================================================
--- head/mail/ecartis/pkg-descr	Fri Jun 20 19:24:56 2014	(r358633)
+++ head/mail/ecartis/pkg-descr	Fri Jun 20 20:06:21 2014	(r358634)
@@ -1,4 +1,4 @@
-Ecartis is a open-source (GNU Licence) software package that adminsters 
+Ecartis is a open-source (GNU Licence) software package that adminsters
 mailing lists (similar to Majordomo and Listserv).  Some of Ecartis's
 features include:
 
@@ -9,5 +9,5 @@ features include:
        - Ability to be run in a multi-Virtual Host configuration.
 
 Take a look at the Ecartis website to get a full feature list:
- 
-WWW: http://www.ecartis.org/
+
+WWW: http://www.ecartis.net

Modified: head/mail/ecartis/pkg-plist
==============================================================================
--- head/mail/ecartis/pkg-plist	Fri Jun 20 19:24:56 2014	(r358633)
+++ head/mail/ecartis/pkg-plist	Fri Jun 20 20:06:21 2014	(r358634)
@@ -1,3 +1,5 @@
+@owner %%EC_USER%%
+@group %%EC_GROUP%%
 ecartis/ecartis
 ecartis/banned
 ecartis/documentation/Makefile
@@ -65,10 +67,10 @@ ecartis/ecartis.cfg.dist
 ecartis/ecartis.aliases.dist
 @dirrm ecartis/lists/test/text
 @dirrm ecartis/lists/test
-@dirrm ecartis/lists
+@dirrmtry ecartis/lists
 @dirrm ecartis/templates
 @dirrm ecartis/scripts
-@dirrm ecartis/queue
+@dirrmtry ecartis/queue
 @dirrm ecartis/modules
 @dirrm ecartis/documentation
-@dirrm ecartis
+@dirrmtry ecartis



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