View | Details | Raw Unified | Return to bug 136841
Collapse All | Expand All

(-)Makefile (-16 / +7 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	quickml
8
PORTNAME=	quickml
9
PORTVERSION=	0.7
9
PORTVERSION=	0.7
10
PORTREVISION=	5
10
PORTREVISION=	6
11
CATEGORIES=	mail
11
CATEGORIES=	mail
12
MASTER_SITES=	http://0xcc.net/quickml/
12
MASTER_SITES=	http://0xcc.net/quickml/
13
13
Lines 18-23 Link Here
18
		LIMIT  "Enable Creators and Members Limitation Patch" off
18
		LIMIT  "Enable Creators and Members Limitation Patch" off
19
19
20
PKGINSTALL=	${WRKDIR}/pkg-install
20
PKGINSTALL=	${WRKDIR}/pkg-install
21
SUB_FILES+=	pkg-install
21
22
22
QUICKML_USER=	quickml
23
QUICKML_USER=	quickml
23
QUICKML_GROUP=	quickml
24
QUICKML_GROUP=	quickml
Lines 26-34 Link Here
26
GNU_CONFIGURE=	yes
27
GNU_CONFIGURE=	yes
27
USE_RUBY=	yes
28
USE_RUBY=	yes
28
29
29
USE_RC_SUBR=	yes
30
USE_RC_SUBR=	${PORTNAME}
30
FILES_SUB=	USER=${QUICKML_USER} GROUP=${QUICKML_GROUP} \
31
SUB_LIST+=	USER=${QUICKML_USER} GROUP=${QUICKML_GROUP} RUBY=${RUBY}
31
		PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} RUBY=${RUBY}
32
32
33
CONFIGURE_ARGS+=	--datadir="${PREFIX}/share/quickml"
33
CONFIGURE_ARGS+=	--datadir="${PREFIX}/share/quickml"
34
CONFIGURE_ARGS+=	--with-ruby="${RUBY}"
34
CONFIGURE_ARGS+=	--with-ruby="${RUBY}"
Lines 43-51 Link Here
43
.endif
43
.endif
44
44
45
.if !defined(WITHOUT_ANALOG)
45
.if !defined(WITHOUT_ANALOG)
46
USE_GHOSTSCRIPT_RUN=	yes
46
#USE_GHOSTSCRIPT_RUN=	yes
47
RUN_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot \
47
#RUN_DEPENDS+=	gnuplot:${PORTSDIR}/math/gnuplot \
48
		convert:${PORTSDIR}/graphics/ImageMagick
48
#		convert:${PORTSDIR}/graphics/ImageMagick
49
.endif
49
.endif
50
50
51
post-fetch:
51
post-fetch:
Lines 57-71 Link Here
57
.if !defined(WITHOUT_LIMIT)
57
.if !defined(WITHOUT_LIMIT)
58
	@${PATCH} ${PATCH_DIST_ARGS} < ${DISTDIR}/${PORTNAME}-${PORTVERSION}-limited.patch
58
	@${PATCH} ${PATCH_DIST_ARGS} < ${DISTDIR}/${PORTNAME}-${PORTVERSION}-limited.patch
59
.endif
59
.endif
60
	@${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
61
		${FILESDIR}/quickml.sh > ${WRKDIR}/quickml.sh
62
.if defined(WITHOUT_ANALOG)
60
.if defined(WITHOUT_ANALOG)
63
	${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/without_quickml-analog
61
	${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/without_quickml-analog
64
.endif
62
.endif
65
63
66
pre-install:
64
pre-install:
67
	@${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
68
		${PKGDIR}/pkg-install > ${PKGINSTALL}
69
	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
65
	@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
70
66
71
post-install:
67
post-install:
Lines 79-88 Link Here
79
	${INSTALL_DATA} ${FILESDIR}/with-mta.en.rd ${DOCSDIR}
75
	${INSTALL_DATA} ${FILESDIR}/with-mta.en.rd ${DOCSDIR}
80
	${INSTALL_DATA} ${WRKSRC}/with-mta.ja.rd ${DOCSDIR}
76
	${INSTALL_DATA} ${WRKSRC}/with-mta.ja.rd ${DOCSDIR}
81
.endif
77
.endif
82
.if !exists(${PREFIX}/etc/rc.d/quickml.sh)
83
	@${ECHO} "Installing ${PREFIX}/etc/rc.d/quickml.sh startup file."
84
	${INSTALL_SCRIPT} -m 751 ${WRKDIR}/quickml.sh ${PREFIX}/etc/rc.d/quickml.sh
85
.endif
86
	@${SED} -e 's|%%PREFIX%%|${PREFIX}|g' -e 's|%%DOCSDIR%%|${DOCSDIR}|g' ${PKGMESSAGE}
87
78
88
.include <bsd.port.post.mk>
79
.include <bsd.port.post.mk>
(-)pkg-install (-31 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/mail/quickml/pkg-install,v 1.1 2004/07/05 17:20:17 pav Exp $
4
#
5
6
PATH=/bin:/usr/bin:/usr/sbin
7
8
case $2 in
9
10
PRE-INSTALL)
11
  echo "---> Starting pre-install script:"
12
13
  if pw showgroup "%%GROUP%%" 2>/dev/null; then
14
    echo "---> Using existing group \"%%GROUP%%\""
15
  else
16
    echo "---> Adding group \"%%GROUP%%\""
17
    pw addgroup %%GROUP%% -g 109 -h - || exit 1
18
  fi
19
20
  # Create user if required
21
  if pw showuser "%%USER%%" 2>/dev/null; then
22
    echo "---> Using existing user \"%%USER%%\""
23
  else
24
    echo "---> Adding user \"%%USER%%\""
25
    pw adduser %%USER%% -u 109 -g %%GROUP%% -h - \
26
      -d "/nonexistent" -s "/sbin/nologin" -c "quickml Server" || exit 1
27
  fi
28
29
  ;;
30
31
esac
(-)pkg-message (-12 lines)
Removed Link Here
1
----------------------------------------------------------------------
2
Installation of QuickML is finished.  QuickML works as a SMTP server.
3
The default configuration let QuickML hold tcp/25, so if you are using
4
the host as a SMTP server you must change settings.
5
6
You can change port for QuickML in %%PREFIX%%/etc/quickmlrc like:
7
  :port => 10025,
8
9
Please see also :
10
	%%DOCSDIR%%/with-mta.en.rd
11
	%%DOCSDIR%%/with-mta.ja.rd
12
----------------------------------------------------------------------
(-)pkg-plist (-1 lines)
Lines 13-19 Link Here
13
sbin/quickml-ctl
13
sbin/quickml-ctl
14
@unexec if cmp -s %D/etc/quickmlrc %D/etc/quickmlrc.sample; then rm -f %D/etc/quickmlrc; fi
14
@unexec if cmp -s %D/etc/quickmlrc %D/etc/quickmlrc.sample; then rm -f %D/etc/quickmlrc; fi
15
etc/quickmlrc.sample
15
etc/quickmlrc.sample
16
etc/rc.d/quickml.sh
17
%%DATADIR%%/messages.ja
16
%%DATADIR%%/messages.ja
18
@dirrm %%DATADIR%%
17
@dirrm %%DATADIR%%
19
@dirrm %%RUBY_LIBDIR%%/quickml
18
@dirrm %%RUBY_LIBDIR%%/quickml
(-)files/pkg-install.in (+31 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/mail/quickml/pkg-install,v 1.1 2004/07/05 17:20:17 pav Exp $
4
#
5
6
PATH=/bin:/usr/bin:/usr/sbin
7
8
case $2 in
9
10
PRE-INSTALL)
11
  echo "---> Starting pre-install script:"
12
13
  if pw showgroup "%%GROUP%%" 2>/dev/null; then
14
    echo "---> Using existing group \"%%GROUP%%\""
15
  else
16
    echo "---> Adding group \"%%GROUP%%\""
17
    pw addgroup %%GROUP%% -g 109 -h - || exit 1
18
  fi
19
20
  # Create user if required
21
  if pw showuser "%%USER%%" 2>/dev/null; then
22
    echo "---> Using existing user \"%%USER%%\""
23
  else
24
    echo "---> Adding user \"%%USER%%\""
25
    pw adduser %%USER%% -u 109 -g %%GROUP%% -h - \
26
      -d "/nonexistent" -s "/sbin/nologin" -c "quickml Server" || exit 1
27
  fi
28
29
  ;;
30
31
esac
(-)files/pkg-message.in (+12 lines)
Added Link Here
1
----------------------------------------------------------------------
2
Installation of QuickML is finished.  QuickML works as a SMTP server.
3
The default configuration let QuickML hold tcp/25, so if you are using
4
the host as a SMTP server you must change settings.
5
6
You can change port for QuickML in %%PREFIX%%/etc/quickmlrc like:
7
  :port => 10025,
8
9
Please see also :
10
	%%DOCSDIR%%/with-mta.en.rd
11
	%%DOCSDIR%%/with-mta.ja.rd
12
----------------------------------------------------------------------
(-)files/quickml.in (+18 lines)
Added Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/mail/quickml/files/quickml.sh,v 1.1 2004/07/05 17:20:17 pav Exp $
4
#
5
6
. %%RC_SUBR%%
7
8
name="quickml"
9
rcvar=`set_rcvar`
10
11
command="%%RUBY%%"
12
command_args="%%PREFIX%%/sbin/${name}"
13
pidfile="/var/run/${name}.pid"
14
required_files=%%PREFIX%%/etc/quickmlrc
15
16
load_rc_config $name
17
18
run_rc_command "$1"
(-)files/quickml.sh (-18 lines)
Removed Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD: ports/mail/quickml/files/quickml.sh,v 1.1 2004/07/05 17:20:17 pav Exp $
4
#
5
6
. %%RC_SUBR%%
7
8
name="quickml"
9
rcvar=`set_rcvar`
10
11
command="%%RUBY%%"
12
command_args="%%PREFIX%%/sbin/${name}"
13
pidfile="/var/run/${name}.pid"
14
required_files=%%PREFIX%%/etc/quickmlrc
15
16
load_rc_config $name
17
18
run_rc_command "$1"

Return to bug 136841