Date: 5 Jul 2004 13:17:54 +0900 From: Yuichiro AIZAWA <yaizawa@mdbl.sfc.keio.ac.jp> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Yuichiro AIZAWA <yaizawa@mdbl.sfc.keio.ac.jp> Subject: ports/68671: New ports: quickml Message-ID: <20040705041754.22595.qmail@amaterasu.yaizawa.jp> Resent-Message-ID: <200407050430.i654UO3k089640@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 68671 >Category: ports >Synopsis: New ports: quickml >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Jul 05 04:30:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Yuichiro AIZAWA <yaizawa@mdbl.sfc.keio.ac.jp> >Release: FreeBSD 5.2.1-RELEASE-p9 i386 >Organization: Graduate School of Media and Governance, Keio University >Environment: System: FreeBSD amaterasu.yaizawa.jp 5.2.1-RELEASE-p9 FreeBSD 5.2.1-RELEASE-p9 #7: Fri Jul 2 01:30:34 JST 2004 yaizawa@amaterasu.yaizawa.jp:/usr/obj/usr/src/sys/TP570 i386 >Description: Quickml is a mailing list manager very easy to use. >How-To-Repeat: >Fix: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # /usr/ports/mail/quickml # /usr/ports/mail/quickml/files # /usr/ports/mail/quickml/files/quickml.sh # /usr/ports/mail/quickml/files/patch-Makefile.in # /usr/ports/mail/quickml/files/without_quickml-analog # /usr/ports/mail/quickml/files/with-mta.en.rd # /usr/ports/mail/quickml/files/patch-configure.ac # /usr/ports/mail/quickml/distinfo # /usr/ports/mail/quickml/Makefile # /usr/ports/mail/quickml/pkg-plist # /usr/ports/mail/quickml/pkg-install # /usr/ports/mail/quickml/pkg-message # /usr/ports/mail/quickml/pkg-descr # echo c - /usr/ports/mail/quickml mkdir -p /usr/ports/mail/quickml > /dev/null 2>&1 echo c - /usr/ports/mail/quickml/files mkdir -p /usr/ports/mail/quickml/files > /dev/null 2>&1 echo x - /usr/ports/mail/quickml/files/quickml.sh sed 's/^X//' >/usr/ports/mail/quickml/files/quickml.sh << 'END-of-/usr/ports/mail/quickml/files/quickml.sh' X#!/bin/sh X# X# $FreeBSD: $ X# X X. %%RC_SUBR%% X Xname="quickml" Xrcvar=`set_rcvar` X Xcommand="%%RUBY%%" Xcommand_args="%%PREFIX%%/sbin/${name}" Xpidfile="/var/run/${name}.pid" Xrequired_files=%%PREFIX%%/etc/quickmlrc X Xload_rc_config $name X Xrun_rc_command "$1" END-of-/usr/ports/mail/quickml/files/quickml.sh echo x - /usr/ports/mail/quickml/files/patch-Makefile.in sed 's/^X//' >/usr/ports/mail/quickml/files/patch-Makefile.in << 'END-of-/usr/ports/mail/quickml/files/patch-Makefile.in' X*** Makefile.in.orig Mon Jun 7 19:21:36 2004 X--- Makefile.in Thu Jul 1 00:18:18 2004 X*************** X*** 626,632 **** X -e 's!%PIDFILE%!$(PIDFILE)!g' \ X quickml-ctl.in > quickml-ctl X chmod +x quickml-ctl X! chmod -w quickml-analog X X quickmlrc.sample: quickmlrc.sample.in Makefile X rm -f quickmlrc.sample X--- 626,632 ---- X -e 's!%PIDFILE%!$(PIDFILE)!g' \ X quickml-ctl.in > quickml-ctl X chmod +x quickml-ctl X! chmod -w quickml-ctl X X quickmlrc.sample: quickmlrc.sample.in Makefile X rm -f quickmlrc.sample END-of-/usr/ports/mail/quickml/files/patch-Makefile.in echo x - /usr/ports/mail/quickml/files/without_quickml-analog sed 's/^X//' >/usr/ports/mail/quickml/files/without_quickml-analog << 'END-of-/usr/ports/mail/quickml/files/without_quickml-analog' X*** Makefile.in.with_analog Thu Jul 1 00:20:16 2004 X--- Makefile.in Thu Jul 1 00:22:28 2004 X*************** X*** 142,151 **** X RD = quickml.en.rd ml-usage.en.rd quickml.ja.rd with-mta.ja.rd X MESSAGES = messages.ja X EXTRA_DIST = $(RD) $(MESSAGES) quickml.in quickml-ctl.in \ X! quickmlrc.sample.in quickml-analog.in X X CLEANFILES = quickml quickml-ctl quickmlrc.sample quickml-analog X- bin_SCRIPTS = quickml-analog X sbin_SCRIPTS = quickml quickml-ctl X quickmlstatedir = $(localstatedir)/quickml X etcdir = $(sysconfdir) X--- 142,150 ---- X RD = quickml.en.rd ml-usage.en.rd quickml.ja.rd with-mta.ja.rd X MESSAGES = messages.ja X EXTRA_DIST = $(RD) $(MESSAGES) quickml.in quickml-ctl.in \ X! quickmlrc.sample.in X X CLEANFILES = quickml quickml-ctl quickmlrc.sample quickml-analog X sbin_SCRIPTS = quickml quickml-ctl X quickmlstatedir = $(localstatedir)/quickml X etcdir = $(sysconfdir) END-of-/usr/ports/mail/quickml/files/without_quickml-analog echo x - /usr/ports/mail/quickml/files/with-mta.en.rd sed 's/^X//' >/usr/ports/mail/quickml/files/with-mta.en.rd << 'END-of-/usr/ports/mail/quickml/files/with-mta.en.rd' X=begin X X= quickml server: How to coexist with other MTA X XLast Update: 2002-04-28 (Release date: 2002-04-28) X X X== Configurate quickml server X X1. Create user `quickml' and group `quickml' on the UNIX host to X quickml server. X X2. Configure quickmlrc as below: X X Config = { X :user => 'quickml', X :group => 'quickml', X :port => 10025, X :bind_address => "127.0.0.1", X X== Configure DNS X XSet MX record of the domain name that is for quickml service X(ex. foobar.com) to the host running quickml server. X X== Configure MTA X X=== Case of qmail X X1. Add X X foobar.com X Xto /var/qmail/control/rcpthosts. X X2. Add X X foobar.com:localhost:10025 X Xto /var/qmail/control/smtproutes. X X=== Case of Postfix X X1. Add X X foobar.com smtp:[localhost:10025] X Xto /etc/postfix/transport. X X2. Add X X transport_maps = hash:/etc/transport X Xto /etc/postfix/main.cf, and execute commands as below. X X # postmap transport X # postfix reload X X== Acknowledgement X XThis document is courtesy of imformation from X((<Mr. Taku Kudo|URL:http://cl.aist-nara.ac.jp/~taku-ku/>)). X X== Translation X XThe original version of this document is written in Japanese by X((<Mr. Satoru Takabayashi|URL:http://namazu.org/~satoru/>)). XTranslation of this document is by X((<Yuichiro AIZAWA|URL:http://www.mdbl.sfc.keio.ac.jp/~yaizawa/>)) Xand XTakashi OTA. X X=end END-of-/usr/ports/mail/quickml/files/with-mta.en.rd echo x - /usr/ports/mail/quickml/files/patch-configure.ac sed 's/^X//' >/usr/ports/mail/quickml/files/patch-configure.ac << 'END-of-/usr/ports/mail/quickml/files/patch-configure.ac' X*** configure.ac.orig Mon Jun 7 17:50:58 2004 X--- configure.ac Sat Jul 3 01:16:54 2004 X*************** X*** 5,14 **** X AC_PROG_LN_S X AC_PROG_MAKE_SET X X! AC_PATH_PROG(RUBY, ruby, no) X! if test "$RUBY" = "no"; then X! AC_MSG_ERROR(ruby not found) X! fi X X AC_ARG_WITH( X user, X--- 5,21 ---- X AC_PROG_LN_S X AC_PROG_MAKE_SET X X! AC_ARG_WITH( X! ruby, X! [ --with-ruby=RUBY quickml runs with RUBY [[ruby]]], X! [RUBY=${withval}], X! [AC_PATH_PROG(RUBY, ruby, no) X! if test "$RUBY" = "no"; then X! AC_MSG_ERROR(ruby not found) X! fi X! ] X! ) X! AC_SUBST(RUBY) X X AC_ARG_WITH( X user, END-of-/usr/ports/mail/quickml/files/patch-configure.ac echo x - /usr/ports/mail/quickml/distinfo sed 's/^X//' >/usr/ports/mail/quickml/distinfo << 'END-of-/usr/ports/mail/quickml/distinfo' XMD5 (quickml-0.7.tar.gz) = 590c19a227eacb78f96c11c9f89886bb XSIZE (quickml-0.7.tar.gz) = 94147 END-of-/usr/ports/mail/quickml/distinfo echo x - /usr/ports/mail/quickml/Makefile sed 's/^X//' >/usr/ports/mail/quickml/Makefile << 'END-of-/usr/ports/mail/quickml/Makefile' X# New ports collection makefile for: quickml X# Date created: 11 June 2004 X# Whom: Yuichiro AIZAWA <yaizawa@mdbl.sfc.keio.ac.jp> X# X# $FreeBSD$ X# X XPORTNAME= quickml XPORTVERSION= 0.7 XCATEGORIES= mail XMASTER_SITES= http://namazu.org/%7esatoru/quickml/ X XMAINTAINER= yaizawa@mdbl.sfc.keio.ac.jp XCOMMENT= An easy-to-use mailing list system X XOPTIONS+= ANALOG "Enable quickml-analog" on X XPKGINSTALL= ${WRKDIR}/pkg-install X XQUICKML_USER= quickml XQUICKML_GROUP= quickml X XUSE_AUTOTOOLS= yes XUSE_AUTOCONF_VER= 259 XGNU_CONFIGURE= yes XUSE_RUBY= yes X XUSE_RC_SUBR= yes XFILES_SUB= USER=${QUICKML_USER} GROUP=${QUICKML_GROUP} \ X PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} RUBY=${RUBY} X XCONFIGURE_ARGS+= --with-ruby="${RUBY}" XCONFIGURE_ARGS+= --with-user="${QUICKML_USER}" XCONFIGURE_ARGS+= --with-group="${QUICKML_GROUP}" XCONFIGURE_ARGS+= --with-rubydir="${RUBY_LIBDIR}" X X.include <bsd.port.pre.mk> X X.if defined(WITH_ANALOG) XUSE_GHOSTSCRIPT_RUN= yes XRUN_DEPENDS= ${LOCALBASE}/bin/gnuplot:${PORTSDIR}/math/gnuplot \ X ${LOCALBASE}/bin/convert:${PORTSDIR}/graphics/ImageMagick X.endif X Xpost-patch: X @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ X ${FILESDIR}/quickml.sh > ${WRKDIR}/quickml.sh X.if !defined(WITH_ANALOG) X ${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/without_quickml-analog X.endif X Xpre-install: X @${SED} ${FILES_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \ X ${PKGDIR}/pkg-install > ${PKGINSTALL} X @${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL X Xpost-install: X.if !defined(NOPORTDOCS) X ${MKDIR} ${PREFIX}/share/doc/quickml X ${INSTALL_DATA} ${WRKSRC}/ml-usage.en.rd ${PREFIX}/share/doc/quickml X ${INSTALL_DATA} ${WRKSRC}/quickml.en.rd ${PREFIX}/share/doc/quickml X ${INSTALL_DATA} ${WRKSRC}/quickml.ja.rd ${PREFIX}/share/doc/quickml X ${INSTALL_DATA} ${FILESDIR}/with-mta.en.rd ${PREFIX}/share/doc/quickml X ${INSTALL_DATA} ${WRKSRC}/with-mta.ja.rd ${PREFIX}/share/doc/quickml X.endif X.if !exists(${PREFIX}/etc/rc.d/quickml.sh) X @${ECHO} "Installing ${PREFIX}/etc/rc.d/quickml.sh startup file." X ${INSTALL_SCRIPT} -m 751 ${WRKDIR}/quickml.sh ${PREFIX}/etc/rc.d/quickml.sh X.endif X @${SED} 's|%%PREFIX%%|${PREFIX}|g' ${PKGMESSAGE} X X.include <bsd.port.post.mk> END-of-/usr/ports/mail/quickml/Makefile echo x - /usr/ports/mail/quickml/pkg-plist sed 's/^X//' >/usr/ports/mail/quickml/pkg-plist << 'END-of-/usr/ports/mail/quickml/pkg-plist' X%%RUBY_LIBDIR%%/quickml/config.rb X%%RUBY_LIBDIR%%/quickml/gettext.rb X%%RUBY_LIBDIR%%/quickml/mail.rb X%%RUBY_LIBDIR%%/quickml/sweeper.rb X%%RUBY_LIBDIR%%/quickml/core.rb X%%RUBY_LIBDIR%%/quickml/logger.rb X%%RUBY_LIBDIR%%/quickml/server.rb X%%RUBY_LIBDIR%%/quickml/utils.rb X%%RUBY_LIBDIR%%/quickml/version.rb X%%RUBY_LIBDIR%%/quickml.rb Xbin/quickml-analog Xsbin/quickml Xsbin/quickml-ctl X@unexec if cmp -s %D/etc/quickmlrc %D/etc/quickmlrc.sample; then rm -f %D/etc/quickmlrc; fi Xetc/quickmlrc.sample Xetc/rc.d/quickml.sh X@dirrm %%RUBY_LIBDIR%%/quickml X%%PORTDOCS%%%%DOCSDIR%%/ml-usage.en.rd X%%PORTDOCS%%%%DOCSDIR%%/quickml.en.rd X%%PORTDOCS%%%%DOCSDIR%%/quickml.ja.rd X%%PORTDOCS%%%%DOCSDIR%%/with-mta.ja.rd X%%PORTDOCS%%@dirrm %%DOCSDIR%% END-of-/usr/ports/mail/quickml/pkg-plist echo x - /usr/ports/mail/quickml/pkg-install sed 's/^X//' >/usr/ports/mail/quickml/pkg-install << 'END-of-/usr/ports/mail/quickml/pkg-install' X#!/bin/sh X# X# $FreeBSD: $ X# X XPATH=/bin:/usr/bin:/usr/sbin X Xcase $2 in X XPRE-INSTALL) X echo "---> Starting pre-install script:" X X if pw showgroup "%%GROUP%%" 2>/dev/null; then X echo "---> Using existing group \"%%GROUP%%\"" X else X echo "---> Adding group \"%%GROUP%%\"" X pw addgroup %%GROUP%% -h - || exit 1 X fi X X # Create user if required X if pw showuser "%%USER%%" 2>/dev/null; then X echo "---> Using existing user \"%%USER%%\"" X else X echo "---> Adding user \"%%USER%%\"" X pw adduser %%USER%% -g %%GROUP%% -h - \ X -d "/nonexistent" -s "/sbin/nologin" -c "quickml Server" || exit 1 X fi X X ;; X Xesac END-of-/usr/ports/mail/quickml/pkg-install echo x - /usr/ports/mail/quickml/pkg-message sed 's/^X//' >/usr/ports/mail/quickml/pkg-message << 'END-of-/usr/ports/mail/quickml/pkg-message' X---------------------------------------------------------------------- XInstallation of QuickML is finished. QuickML works as a SMTP server. XThe default configuration let QuickML hold tcp/25, so if you are using Xthe host as a SMTP server you must change settings. X XYou can change port for QuickML in %%PREFIX%%/etc/quickmlrc like: X :port => 10025, X XPlease see also : X %%PREFIX%%/share/doc/quickml/with-mta.en.rd X %%PREFIX%%/share/doc/quickml/with-mta.ja.rd X---------------------------------------------------------------------- END-of-/usr/ports/mail/quickml/pkg-message echo x - /usr/ports/mail/quickml/pkg-descr sed 's/^X//' >/usr/ports/mail/quickml/pkg-descr << 'END-of-/usr/ports/mail/quickml/pkg-descr' Xquickml server is a very-easy-to-use mailing list system. quickml Xserver provides very-easy-to-use mailing list service. X XWWW: http://quickml.com/quickml/ X X- Yuichiro AIZAWA Xyaizawa@mdbl.sfc.keio.ac.jp END-of-/usr/ports/mail/quickml/pkg-descr exit >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040705041754.22595.qmail>