diff options
author | obache <obache@pkgsrc.org> | 2011-06-19 10:01:53 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2011-06-19 10:01:53 +0000 |
commit | 04d1c1589bd5380410fa9de832b9ebaaef4458f9 (patch) | |
tree | e77839df22c916f232ea8180db655e73e103dcdd /mail | |
parent | 206edc719f4bef7b6677786a1c35c653fa62566d (diff) | |
download | pkgsrc-04d1c1589bd5380410fa9de832b9ebaaef4458f9.tar.gz |
Import quickml-0.7 as mail/quickml.
Based on PR#44939 by Susumu Miwa.
Modified by Makoto Fujiwawa and me in pkgsrc-wip.
Quickml server provides very-easy-to-use mailing list service.
It was too open in this age, some limitation is provided in
this package. The original code is written by Satoru Takabayashi.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/quickml/DESCR | 3 | ||||
-rw-r--r-- | mail/quickml/Makefile | 52 | ||||
-rw-r--r-- | mail/quickml/PLIST | 17 | ||||
-rw-r--r-- | mail/quickml/distinfo | 7 | ||||
-rw-r--r-- | mail/quickml/files/quickml.sh | 22 | ||||
-rw-r--r-- | mail/quickml/options.mk | 30 | ||||
-rw-r--r-- | mail/quickml/patches/patch-Makefile.in | 27 | ||||
-rw-r--r-- | mail/quickml/patches/patch-quickml-analog.in | 67 |
8 files changed, 225 insertions, 0 deletions
diff --git a/mail/quickml/DESCR b/mail/quickml/DESCR new file mode 100644 index 00000000000..06f74c33f1e --- /dev/null +++ b/mail/quickml/DESCR @@ -0,0 +1,3 @@ +Quickml server provides very-easy-to-use mailing list service. +It was too open in this age, some limitation is provided in +this package. The original code is written by Satoru Takabayashi. diff --git a/mail/quickml/Makefile b/mail/quickml/Makefile new file mode 100644 index 00000000000..4f0eea3996b --- /dev/null +++ b/mail/quickml/Makefile @@ -0,0 +1,52 @@ +# $NetBSD: Makefile,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $ +# + +DISTNAME= quickml-0.7 +CATEGORIES= mail +MASTER_SITES= http://0xcc.net/quickml/ + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://0xcc.net/quickml/ +COMMENT= Easy-to-use mailing list system +LICENSE= gnu-gpl-v2 + +PKG_DESTDIR_SUPPORT= user-destdir +GNU_CONFIGURE= yes +USE_LANGUAGES= # none +RCD_SCRIPTS+= quickml + +QUICKML_USER= quickml +QUICKML_GROUP= quickml +PKG_GROUPS= ${QUICKML_GROUP} +PKG_USERS= ${QUICKML_USER}:${QUICKML_GROUP} +BUILD_DEFS+= VARBASE + +.include "../../mk/bsd.prefs.mk" + +QUICKML_DATA_DIR= ${PREFIX}/share/quickml + +.include "options.mk" +.include "../../lang/ruby/buildlink3.mk" + +CONFIGURE_ARGS+= --datadir=${QUICKML_DATA_DIR} +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} +CONFIGURE_ARGS+= --with-user=${QUICKML_USER} +CONFIGURE_ARGS+= --with-group=${QUICKML_GROUP} +CONFIGURE_ARGS+= --with-pidfile=${VARBASE}/run/quickml.pid +CONFIGURE_ARGS+= --with-logfile=${VARBASE}/log/quickml.log +CONFIGURE_ARGS+= --with-rubydir=${PREFIX}/${RUBY_VENDORLIB} +CONFIGURE_ARGS+= --localstatedir=${VARBASE} + +INSTALL_MAKE_FLAGS+= etcdir=${PREFIX}/share/examples/quickml + +OWN_DIRS_PERMS+= ${VARBASE}/quickml ${QUICKML_USER} ${QUICKML_GROUP} 0750 + +CONF_FILES= ${PREFIX}/share/examples/quickml/quickmlrc.sample ${PKG_SYSCONFDIR}/quickmlrc + +INSTALLATION_DIRS+= ${QUICKML_DATA_DIR} + +post-install: + ${INSTALL_DATA} ${WRKSRC}/messages.ja ${DESTDIR}${QUICKML_DATA_DIR} + +.include "../../lang/ruby/modules.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/mail/quickml/PLIST b/mail/quickml/PLIST new file mode 100644 index 00000000000..eacd564f5c5 --- /dev/null +++ b/mail/quickml/PLIST @@ -0,0 +1,17 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $ +${PLIST.analog}bin/quickml-analog +${RUBY_VENDORLIB}/quickml.rb +${RUBY_VENDORLIB}/quickml/config.rb +${RUBY_VENDORLIB}/quickml/core.rb +${RUBY_VENDORLIB}/quickml/gettext.rb +${RUBY_VENDORLIB}/quickml/logger.rb +${RUBY_VENDORLIB}/quickml/mail.rb +${RUBY_VENDORLIB}/quickml/server.rb +${RUBY_VENDORLIB}/quickml/sweeper.rb +${RUBY_VENDORLIB}/quickml/utils.rb +${RUBY_VENDORLIB}/quickml/version.rb +sbin/quickml +sbin/quickml-ctl +share/examples/quickml/quickmlrc.sample +share/examples/rc.d/quickml +share/quickml/messages.ja diff --git a/mail/quickml/distinfo b/mail/quickml/distinfo new file mode 100644 index 00000000000..a3acffef643 --- /dev/null +++ b/mail/quickml/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $ + +SHA1 (quickml-0.7.tar.gz) = 7122a100840d16762e101e62993752401e95e5bb +RMD160 (quickml-0.7.tar.gz) = bc34b93676eb342a450bc1a2d3b92d7a06603872 +Size (quickml-0.7.tar.gz) = 94147 bytes +SHA1 (patch-Makefile.in) = e451853e4c0542a948b9772f308fa5087e994a3c +SHA1 (patch-quickml-analog.in) = 83f385a9eb84ace4dbb0b1d0527caad3810c6efa diff --git a/mail/quickml/files/quickml.sh b/mail/quickml/files/quickml.sh new file mode 100644 index 00000000000..d54507f818c --- /dev/null +++ b/mail/quickml/files/quickml.sh @@ -0,0 +1,22 @@ +#!@RCD_SCRIPTS_SHELL@ +# +# $NetBSD: quickml.sh,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $ +# +# PROVIDE: quickml +# REQUIRE: LOGIN +# +# Add the following lines to /etc/rc.conf to enable this service: +# +# quickml=YES + +. /etc/rc.subr + +name="quickml" +rcvar=$name +command="@PREFIX@/sbin/${name}" +command_interpreter="@RUBY@" +pidfile="@VARBASE@/run/${name}.pid" +required_files=@PKG_SYSCONFDIR@/quickmlrc + +load_rc_config ${name} +run_rc_command "$1" diff --git a/mail/quickml/options.mk b/mail/quickml/options.mk new file mode 100644 index 00000000000..0e7d014531d --- /dev/null +++ b/mail/quickml/options.mk @@ -0,0 +1,30 @@ +# $NetBSD: options.mk,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.quickml +PKG_SUPPORTED_OPTIONS+= quickml-analog quickml-limit + +.include "../../mk/bsd.options.mk" + +PLIST_VARS+= analog + +.if !empty(PKG_OPTIONS:Mlimit) +LIMIT_PATCH= quickml-0.7-limited.patch +PATCHFILES+= ${LIMIT_PATCH} +#SITES.${LIMIT_PATCH}= http://linux.matchy.net/view.xcg?c=plugin;plugin=attach_download;p=QuickMLLimited;file_name= +SITES.${LIMIT_PATCH}= http://matchy.s28.xrea.com/hiki.xcg?c=plugin;plugin=attach_download;p=QuickMLLimited;file_name= +PATCH_DIST_STRIP.${LIMIT_PATCH}= -p1 +.endif + + +.if !empty(PKG_OPTIONS:Mquickml-analog) +USE_TOOLS+= gs:run +DEPENDS+= ImageMagick-[0-9]*:../../graphics/ImageMagick +DEPENDS+= gnuplot>=3.7:../../graphics/gnuplot +PLIST.analog= yes +.else +SUBST_CLASSES+= analog +SUBST_STAGE.analog= pre-configure +SUBST_MESSAGE.analog= Disable quickml-analog script. +SUBST_FILES.analog= Makefile.in +SUBST_SED.analog= -e '/^bin_SCRIPTS =/s/quickml-analog//g' +.endif diff --git a/mail/quickml/patches/patch-Makefile.in b/mail/quickml/patches/patch-Makefile.in new file mode 100644 index 00000000000..d8d3a2ad245 --- /dev/null +++ b/mail/quickml/patches/patch-Makefile.in @@ -0,0 +1,27 @@ +$NetBSD: patch-Makefile.in,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $ + +(1) fix copy&paste&modify error? +(2) $(quickmlstatedir) will be handled by pkgsrc framework. + +--- Makefile.in.orig 2004-06-07 10:21:36.000000000 +0000 ++++ Makefile.in +@@ -626,7 +626,7 @@ quickml-ctl: quickml-ctl.in Makefile + -e 's!%PIDFILE%!$(PIDFILE)!g' \ + quickml-ctl.in > quickml-ctl + chmod +x quickml-ctl +- chmod -w quickml-analog ++ chmod -w quickml-ctl + + quickmlrc.sample: quickmlrc.sample.in Makefile + rm -f quickmlrc.sample +@@ -639,10 +639,6 @@ quickmlrc.sample: quickmlrc.sample.in Ma + quickmlrc.sample.in > quickmlrc.sample + + install-data-local: +- mkdir -p $(quickmlstatedir) +- chown -R $(USER) $(quickmlstatedir) +- chgrp -R $(GROUP) $(quickmlstatedir) +- chmod 750 $(quickmlstatedir) + + quickml.ja.html: quickml.ja.rd + rd2 $(RDOPT) \ diff --git a/mail/quickml/patches/patch-quickml-analog.in b/mail/quickml/patches/patch-quickml-analog.in new file mode 100644 index 00000000000..93338323c54 --- /dev/null +++ b/mail/quickml/patches/patch-quickml-analog.in @@ -0,0 +1,67 @@ +$NetBSD: patch-quickml-analog.in,v 1.1.1.1 2011/06/19 10:01:53 obache Exp $ + +* gnuplot>=4.0 support. + +--- quickml-analog.in.orig 2004-06-07 08:50:59.000000000 +0000 ++++ quickml-analog.in +@@ -15,6 +15,7 @@ require 'getoptlong' + require 'ftools' + require 'time' + require 'cgi' ++require 'open3' + + class Array + def tail (n) +@@ -395,19 +396,40 @@ class QuickMLPlot + end + + def add_basic (f) +- f.print ' +- set grid +- set timefmt "%y%m%d%H" +- set xdata time +- set size ratio 0.76 +- set linestyle 1 linetype 1 linewidth 5 +- set linestyle 2 linetype 3 linewidth 5 +- set linestyle 3 linetype 2 linewidth 5 +- set linestyle 4 linetype 4 linewidth 5 +- set linestyle 5 linetype 5 linewidth 5 +- set linestyle 6 linetype 7 linewidth 5 ++ Open3.popen3( "gnuplot" ) { |stdin, stdout, stderr| ++ stdin.puts "show version" ++ stdin.close ++ stderr.read[/[Vv]ersion (\d+\.\d+)/] ++ } ++ if ( Float( $1 ) < 4.0 ) then ++ f.print ' ++ set grid ++ set timefmt "%y%m%d%H" ++ set xdata time ++ set size ratio 0.76 ++ set linestyle 1 linetype 1 linewidth 5 ++ set linestyle 2 linetype 3 linewidth 5 ++ set linestyle 3 linetype 2 linewidth 5 ++ set linestyle 4 linetype 4 linewidth 5 ++ set linestyle 5 linetype 5 linewidth 5 ++ set linestyle 6 linetype 7 linewidth 5 + +- '.gsub(/^ /, "") ++ '.gsub(/^ /, "") ++ else ++ f.print ' ++ set grid ++ set timefmt "%y%m%d%H" ++ set xdata time ++ set size ratio 0.76 ++ set style line 1 linetype 1 linewidth 5 ++ set style line 2 linetype 3 linewidth 5 ++ set style line 3 linetype 2 linewidth 5 ++ set style line 4 linetype 4 linewidth 5 ++ set style line 5 linetype 5 linewidth 5 ++ set style line 6 linetype 7 linewidth 5 ++ ++ '.gsub(/^ /, "") ++ end + end + + def add_chart (f, default, lang, chart_prefix, stat_files, type, |