View | Details | Raw Unified | Return to bug 190753 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-23 / +16 lines)
Lines 3-45 Link Here
3
3
4
PORTNAME=	ecartis
4
PORTNAME=	ecartis
5
PORTVERSION=	1.0.0.s20060813
5
PORTVERSION=	1.0.0.s20060813
6
PORTREVISION=	1
6
PORTEPOCH=	1
7
PORTEPOCH=	1
7
CATEGORIES=	mail
8
CATEGORIES=	mail
8
MASTER_SITES=	http://conducive.net/tarballs/ \
9
MASTER_SITES=	ftp://ftp.ecartis.net/pub/ecartis/ \
9
		http://rodrigo.osorio.free.fr/freebsd/distfiles/
10
		http://rodrigo.osorio.free.fr/freebsd/distfiles/
10
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.s/-snap/}
11
DISTNAME=	${PORTNAME}-${PORTVERSION:S/.s/-snap/}
11
12
12
MAINTAINER=	jtrigg@spamcop.net
13
MAINTAINER=	jtrigg@spamcop.net
13
COMMENT=	The Ecartis Listserver \ Mailing List Manager
14
COMMENT=	The Ecartis Listserver / Mailing List Manager
14
15
15
USES=		gmake
16
USES=		gmake
16
17
17
NO_PACKAGE=	Requires ecartis uid
18
EC_USER?=	ecartis
18
IS_INTERACTIVE=	"Stops to ask to create ecartis user/group"
19
EC_GROUP?=	ecartis
20
USERS=		${EC_USER}
21
GROUPS=		${EC_GROUP}
22
19
WRKSRC=		${WRKDIR}/ecartis-1.0.0/src
23
WRKSRC=		${WRKDIR}/ecartis-1.0.0/src
24
IDEST=		${STAGEDIR}${PREFIX}/${PORTNAME}
20
25
21
NO_STAGE=	yes
26
SUB_FILES=	pkg-message
27
PLIST_SUB=	EC_USER=${EC_USER} EC_GROUP=${EC_GROUP}
28
22
pre-patch:
29
pre-patch:
23
	@${CP} ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
30
	@${CP} ${WRKSRC}/Makefile.dist ${WRKSRC}/Makefile
24
31
25
pre-install:
32
pre-install:
26
	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
33
	${MKDIR} ${IDEST}
27
	@${MKDIR} ${PREFIX}/${PORTNAME}
34
	cd ${WRKDIR}/${PORTNAME}-1.0.0 && ${FIND} * -print | \
28
	@${CP} -R ${WRKDIR}/${PORTNAME}-1.0.0/* ${PREFIX}/ecartis
35
		${CPIO} -pdu --quiet ${IDEST}
29
	@${RM} -R ${PREFIX}/${PORTNAME}/src/
36
	${RM} -rf ${IDEST}/src/ ${IDEST}/debian ${IDEST}/ecartis.ds[pw]
30
	@${RM} -R ${PREFIX}/${PORTNAME}/debian/
31
	@${RM} ${PREFIX}/${PORTNAME}/ecartis.dsp ${PREFIX}/${PORTNAME}/ecartis.dsw
32
	@${CHOWN} -R ecartis:ecartis ${PREFIX}/${PORTNAME}/*
33
37
34
post-install:
35
	@${ECHO_MSG} "---------------------------------------------------"
36
	@${ECHO_MSG} "- Thank You for installing the Ecartis Listserver -"
37
	@${ECHO_MSG} "- package.  Please read the documentation located -"
38
	@${ECHO_MSG} "- in ${PREFIX}/ecartis/, or online at:            -"
39
	@${ECHO_MSG} "-                                                 -"
40
	@${ECHO_MSG} "- http://www.ecartis.org/                         -"
41
	@${ECHO_MSG} "-                                                 -"
42
	@${ECHO_MSG} "- -The Ecartis Developers                         -"
43
	@${ECHO_MSG} "---------------------------------------------------"
44
45
.include <bsd.port.mk>
38
.include <bsd.port.mk>
(-)files/patch-Makefile (-24 / +7 lines)
Lines 1-5 Link Here
1
--- Makefile.dist      Sat Apr 27 02:26:56 2002
1
--- Makefile.dist	2006-08-13 03:50:15.000000000 -0500
2
+++ Makefile   Sat Apr 27 09:35:52 2002
2
+++ Makefile	2014-05-19 20:04:56.636909101 -0500
3
@@ -6,8 +6,8 @@
3
@@ -6,8 +6,8 @@
4
 # they should be set.  All of them are conditional on options set in this
4
 # they should be set.  All of them are conditional on options set in this
5
 # file, so it should be relatively easy to determine which branch is correct
5
 # file, so it should be relatively easy to determine which branch is correct
Lines 6-17 Link Here
6
 
6
 
7
-BINDIR = ..
7
-BINDIR = ..
8
-MODDIR = ../modules
8
-MODDIR = ../modules
9
+BINDIR = ${PREFIX}/ecartis
9
+BINDIR = ${DESTDIR}${PREFIX}/ecartis
10
+MODDIR = ${PREFIX}/ecartis/modules
10
+MODDIR = ${BINDIR}/modules
11
 
11
 
12
 # First things first we need to set up some various options since OS's aren't
12
 # First things first we need to set up some various options since OS's aren't
13
 # as nice about things are they could be.
13
 # as nice about things are they could be.
14
@@ -38,7 +38,7 @@
14
@@ -33,7 +33,7 @@
15
 # Uncomment this if you are on a BSD system AND you want dynamic modules
15
 # Uncomment this if you are on a BSD system AND you want dynamic modules
16
 # SunOS (4 and 5 both) also needs this setting.
16
 # SunOS (4 and 5 both) also needs this setting.
17
 #
17
 #
Lines 20-35 Link Here
20
 
20
 
21
 # Uncomment this if you are compiling on OpenBSD with modules (BSDMOD = 1)
21
 # Uncomment this if you are compiling on OpenBSD with modules (BSDMOD = 1)
22
 #OBSDMOD = 1
22
 #OBSDMOD = 1
23
@@ -60,7 +60,7 @@
23
@@ -120,7 +120,6 @@
24
 # Uncomment this if you have the GNU strftime() function.  This version
25
 # of the function understands %z to return the numerical offset.  It's better
26
 # to use that if it's available for RFC822 date headers
27
-GNU_STRFTIME=-DGNU_STRFTIME
28
+#GNU_STRFTIME=-DGNU_STRFTIME
29
 
30
 # Uncomment this if you are on a machine that doesn't have strerror()
31
 #
32
@@ -125,7 +125,6 @@
33
 ifdef BSDIMOD
24
 ifdef BSDIMOD
34
 CC=shlicc
25
 CC=shlicc
35
 else
26
 else
Lines 37-43 Link Here
37
 endif
28
 endif
38
 
29
 
39
 # Warning-level flags.  Under SunOS (4 and 5), this NEEDS TO BE BLANK.
30
 # Warning-level flags.  Under SunOS (4 and 5), this NEEDS TO BE BLANK.
40
@@ -134,9 +133,7 @@
31
@@ -129,9 +128,7 @@
41
 #
32
 #
42
 # It appears that IRIX is also rather stupid, and may require this
33
 # It appears that IRIX is also rather stupid, and may require this
43
 # to be removed.
34
 # to be removed.
Lines 48-58 Link Here
48
 
39
 
49
 # Now set up the initial command line.  SUNOS_5 makes this a bit wierd.
40
 # Now set up the initial command line.  SUNOS_5 makes this a bit wierd.
50
 ifndef SUNOS_5
41
 ifndef SUNOS_5
51
@@ -327,6 +324,7 @@
52
 install: targets
53
 	cp build/ecartis ${BINDIR}
54
 	chmod ug+s ${BINDIR}/ecartis
55
+	chown -R ecartis:ecartis ${BINDIR}
56
 ifdef DYNMOD
57
 	@for dir in ${MODULES}; do \
58
 		cp build/$${dir}.lpm ${MODDIR}/$${dir}.lpm; \
(-)files/patch-aa (-58 lines)
Lines 1-58 Link Here
1
--- Makefile.dist      Sat Apr 27 02:26:56 2002
2
+++ Makefile   Sat Apr 27 09:35:52 2002
3
@@ -6,8 +6,8 @@
4
 # they should be set.  All of them are conditional on options set in this
5
 # file, so it should be relatively easy to determine which branch is correct
6
 
7
-BINDIR = ..
8
-MODDIR = ../modules
9
+BINDIR = ${PREFIX}/ecartis
10
+MODDIR = ${PREFIX}/ecartis/modules
11
 
12
 # First things first we need to set up some various options since OS's aren't
13
 # as nice about things are they could be.
14
@@ -38,7 +38,7 @@
15
 # Uncomment this if you are on a BSD system AND you want dynamic modules
16
 # SunOS (4 and 5 both) also needs this setting.
17
 #
18
-#BSDMOD = 1
19
+BSDMOD = 1
20
 
21
 # Uncomment this if you are compiling on OpenBSD with modules (BSDMOD = 1)
22
 #OBSDMOD = 1
23
@@ -60,7 +60,7 @@
24
 # Uncomment this if you have the GNU strftime() function.  This version
25
 # of the function understands %z to return the numerical offset.  It's better
26
 # to use that if it's available for RFC822 date headers
27
-GNU_STRFTIME=-DGNU_STRFTIME
28
+#GNU_STRFTIME=-DGNU_STRFTIME
29
 
30
 # Uncomment this if you are on a machine that doesn't have strerror()
31
 #
32
@@ -125,7 +125,6 @@
33
 ifdef BSDIMOD
34
 CC=shlicc
35
 else
36
-CC=gcc
37
 endif
38
 
39
 # Warning-level flags.  Under SunOS (4 and 5), this NEEDS TO BE BLANK.
40
@@ -134,9 +133,7 @@
41
 #
42
 # It appears that IRIX is also rather stupid, and may require this
43
 # to be removed.
44
-WFLAGS=-Wall -Werror
45
-# Uncomment this to build with gdb symbols (comment above line)
46
-#WFLAGS=-ggdb -Wall -Werror
47
+WFLAGS:=${CFLAGS}
48
 
49
 # Now set up the initial command line.  SUNOS_5 makes this a bit wierd.
50
 ifndef SUNOS_5
51
@@ -327,6 +324,7 @@
52
 install: targets
53
 	cp build/ecartis ${BINDIR}
54
 	chmod ug+s ${BINDIR}/ecartis
55
+	chown -R ecartis:ecartis ${BINDIR}
56
 ifdef DYNMOD
57
 	@for dir in ${MODULES}; do \
58
 		cp build/$${dir}.lpm ${MODDIR}/$${dir}.lpm; \
(-)files/pkg-message.in (+7 lines)
Line 0 Link Here
1
Thank You for installing the Ecartis Listserver package.  Please
2
read the documentation located in %%PREFIX%%/ecartis/
3
or online at:
4
5
http://www.ecartis.net/
6
7
-- The Ecartis Developers
(-)pkg-descr (-1 / +1 lines)
Lines 10-13 Link Here
10
10
11
Take a look at the Ecartis website to get a full feature list:
11
Take a look at the Ecartis website to get a full feature list:
12
 
12
 
13
WWW: http://www.ecartis.org/
13
WWW: http://www.ecartis.net/
(-)pkg-install (-63 lines)
Lines 1-63 Link Here
1
#!/bin/sh
2
3
user=ecartis
4
group=ecartis
5
6
ask() {
7
    local question default answer
8
9
    question=$1
10
    default=$2
11
    if [ -z "${PACKAGE_BUILDING}" ]; then
12
        read -p "${question} [${default}]? " answer
13
    fi
14
    if [ x${answer} = x ]; then
15
        answer=${default}
16
    fi
17
    echo ${answer}
18
}
19
20
yesno() {
21
    local dflt question answer
22
23
    question=$1
24
    dflt=$2
25
    while :; do
26
        answer=$(ask "${question}" "${dflt}")
27
        case "${answer}" in
28
        [Yy]*)          return 0;;
29
        [Nn]*)          return 1;;
30
        esac
31
        echo "Please answer yes or no."
32
    done
33
}
34
35
if [ x"$2" = xPRE-INSTALL ]; then
36
    if pw groupshow "${group}" 2>/dev/null; then
37
        echo "You already have a group \"${group}\", so I will use it."
38
    else
39
        echo "You need a group \"${group}\"."
40
        if yesno "Would you like me to create it" y; then
41
            pw groupadd ${group} -h - || exit
42
            echo "Done."
43
        else
44
            echo "Please create it, and try again."
45
            exit 1
46
        fi
47
    fi
48
49
    if pw user show "${user}" 2>/dev/null; then
50
        echo "You already have a user \"${user}\", so I will use it."
51
    else
52
        echo "You need a user \"${user}\"."
53
        if yesno "Would you like me to create it" y; then
54
            pw useradd ${user} -g ${group} -h - -d /nonexistent \
55
                -s /nonexistent -c "Ecartis Listserver" || exit
56
            echo "Done."
57
        else
58
            echo "Please create it, and try again."
59
            exit 1
60
        fi
61
    fi
62
63
fi
(-)pkg-plist (-3 / +5 lines)
Lines 1-3 Link Here
1
@owner %%EC_USER%%
2
@group %%EC_GROUP%%
1
ecartis/ecartis
3
ecartis/ecartis
2
ecartis/banned
4
ecartis/banned
3
ecartis/documentation/Makefile
5
ecartis/documentation/Makefile
Lines 65-74 Link Here
65
ecartis/ecartis.aliases.dist
67
ecartis/ecartis.aliases.dist
66
@dirrm ecartis/lists/test/text
68
@dirrm ecartis/lists/test/text
67
@dirrm ecartis/lists/test
69
@dirrm ecartis/lists/test
68
@dirrm ecartis/lists
70
@dirrmtry ecartis/lists
69
@dirrm ecartis/templates
71
@dirrm ecartis/templates
70
@dirrm ecartis/scripts
72
@dirrm ecartis/scripts
71
@dirrm ecartis/queue
73
@dirrmtry ecartis/queue
72
@dirrm ecartis/modules
74
@dirrm ecartis/modules
73
@dirrm ecartis/documentation
75
@dirrm ecartis/documentation
74
@dirrm ecartis
76
@dirrmtry ecartis

Return to bug 190753