Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

3
mail/quickml/DESCR Normal file
View File

@@ -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.

54
mail/quickml/Makefile Normal file
View File

@@ -0,0 +1,54 @@
# $NetBSD: Makefile,v 1.7 2013/04/24 10:06:50 sbd Exp $
#
DISTNAME= quickml-0.7
PKGREVISION= 2
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
GNU_CONFIGURE= yes
USE_LANGUAGES= # none
RCD_SCRIPTS+= quickml
RUBY_VERSION_SUPPORTED= 193
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"

17
mail/quickml/PLIST Normal file
View File

@@ -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

14
mail/quickml/distinfo Normal file
View File

@@ -0,0 +1,14 @@
$NetBSD: distinfo,v 1.2 2012/08/11 13:51:20 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) = d1c73befff63dac3f76dad27d70460527f2a1e2a
SHA1 (patch-lib_quickml_config.rb) = f47e92e2cd2c89c2d400cca8813c5a82466cec18
SHA1 (patch-lib_quickml_core.rb) = 21cb461fb98ca369934e05941be009ca82bcd73b
SHA1 (patch-lib_quickml_gettext.rb) = 47f693fb71830781e28dac0e318da03c0caf684b
SHA1 (patch-lib_quickml_mail.rb) = b80ea8007b73a7e2b736a08392f5e2153356c6b3
SHA1 (patch-lib_quickml_utils.rb) = 1cb00ffacb3045504b1af59113a5a93327b0bad7
SHA1 (patch-messages.ja) = bf82d499b0498844fcdd1371e240870d5c1a17f0
SHA1 (patch-quickml-analog.in) = 834d549051bad5495cac7677eb56f4c0c0f38f2e
SHA1 (patch-quickml.in) = cab3c2b7d4357f4b3870819cbde21faa1fd39944

View File

@@ -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"

30
mail/quickml/options.mk Normal file
View File

@@ -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

View File

@@ -0,0 +1,37 @@
$NetBSD: patch-Makefile.in,v 1.2 2012/08/11 13:51:20 obache Exp $
(1) exactly specify KANJI code for ruby-1.9
(2) fix copy&paste&modify error?
(3) $(quickmlstatedir) will be handled by pkgsrc framework.
--- Makefile.in.orig 2004-06-07 10:21:36.000000000 +0000
+++ Makefile.in
@@ -605,7 +605,7 @@ uninstall-info: uninstall-info-recursive
quickml: quickml.in
for i in $(MESSAGES); do\
- $(RUBY) lib/quickml/gettext.rb $$i quickml.in lib/quickml/*.rb;\
+ $(RUBY) -Ke lib/quickml/gettext.rb $$i quickml.in lib/quickml/*.rb;\
done
rm -f quickml
sed -e 's!%RUBY%!$(RUBY)!g' \
@@ -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) \

View File

@@ -0,0 +1,15 @@
$NetBSD: patch-lib_quickml_config.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
* for ruby-1.9
--- lib/quickml/config.rb.orig 2004-06-07 08:50:59.000000000 +0000
+++ lib/quickml/config.rb
@@ -62,7 +62,7 @@ module QuickML
@confirm_ml_creation = (config[:confirm_ml_creation] or false)
instance_variables.each {|name|
- self.class.class_eval { attr_reader name.delete('@') }
+ self.class.class_eval { attr_reader name.to_s.delete('@') }
}
end

View File

@@ -0,0 +1,19 @@
$NetBSD: patch-lib_quickml_core.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
* specify character coding system with ruby-1.9 way
--- lib/quickml/core.rb.orig 2004-06-08 20:15:11.000000000 +0000
+++ lib/quickml/core.rb
@@ -1,3 +1,4 @@
+#coding: euc-jp
#
# quickml/core - a part of quickml server
#
@@ -8,7 +9,6 @@
# You can redistribute it and/or modify it under the terms of
# the GNU General Public License version 2.
#
-$KCODE='e'
require 'quickml/utils'
require 'quickml/gettext'

View File

@@ -0,0 +1,11 @@
$NetBSD: patch-lib_quickml_gettext.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
* specify character coding system with ruby-1.9 way
--- lib/quickml/gettext.rb.orig 2004-06-07 08:50:59.000000000 +0000
+++ lib/quickml/gettext.rb
@@ -1,3 +1,4 @@
+#coding: euc-jp
#
# quickml/gettext - a part of quickml server
#

View File

@@ -0,0 +1,11 @@
$NetBSD: patch-lib_quickml_mail.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
* specify character coding system with ruby-1.9 way
--- lib/quickml/mail.rb.orig 2004-06-07 08:50:59.000000000 +0000
+++ lib/quickml/mail.rb
@@ -1,3 +1,4 @@
+#coding: euc-jp
#
# quickml/mail - a part of quickml server
#

View File

@@ -0,0 +1,24 @@
$NetBSD: patch-lib_quickml_utils.rb,v 1.1 2012/08/11 13:51:20 obache Exp $
* specify character coding system with ruby-1.9 way
* use fileutils instead of deprecated ftools
--- lib/quickml/utils.rb.orig 2004-06-07 08:50:59.000000000 +0000
+++ lib/quickml/utils.rb
@@ -1,3 +1,4 @@
+#coding: euc-jp
#
# quickml/utils - a part of quickml server
#
@@ -8,10 +9,9 @@
# You can redistribute it and/or modify it under the terms of
# the GNU General Public License version 2.
#
-$KCODE = 'e'
require 'kconv'
require 'net/smtp'
-require 'ftools'
+require 'fileutils'
class TooLongLine < Exception; end
class IO

View File

@@ -0,0 +1,11 @@
$NetBSD: patch-messages.ja,v 1.1 2012/08/11 13:51:20 obache Exp $
* specify character coding system with ruby-1.9 way
--- messages.ja.orig 2004-06-07 08:50:58.000000000 +0000
+++ messages.ja
@@ -1,3 +1,4 @@
+#coding: euc-jp
# -*- mode: ruby -*-
Messages = {
"<%s> was removed from the mailing list:\n<%s>\n" =>

View File

@@ -0,0 +1,54 @@
$NetBSD: patch-quickml-analog.in,v 1.2 2012/08/11 13:51:20 obache Exp $
* for ruby-1.9 (use fileutils instead of deprecated ftools)
* gnuplot>=4.0 support.
--- quickml-analog.in.orig 2004-06-07 08:50:59.000000000 +0000
+++ quickml-analog.in
@@ -12,9 +12,10 @@
#
require 'getoptlong'
-require 'ftools'
+require 'fileutils'
require 'time'
require 'cgi'
+require 'open3'
class Array
def tail (n)
@@ -395,6 +396,12 @@ class QuickMLPlot
end
def add_basic (f)
+ 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"
@@ -408,6 +415,21 @@ class QuickMLPlot
set linestyle 6 linetype 7 linewidth 5
'.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,

View File

@@ -0,0 +1,20 @@
$NetBSD: patch-quickml.in,v 1.1 2012/08/11 13:51:20 obache Exp $
* sepcify character coding system with ruby-1.9 way
--- quickml.in.orig 2004-06-07 08:50:58.000000000 +0000
+++ quickml.in
@@ -1,4 +1,5 @@
#! %RUBY%
+#coding: euc-jp
# -*- mode: ruby -*-
#
# quickml - an easy-to-use mailing list server
@@ -11,7 +12,6 @@
# the GNU General Public License version 2.
#
-$KCODE = "e"
require 'quickml'
def error (msg)