pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/45867: net/pure-ftpd: add rc.d script for pure-uploadscript, update to 1.0.35
>Number: 45867
>Category: pkg
>Synopsis: net/pure-ftpd: add rc.d script for pure-uploadscript, update
>to 1.0.35
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Mon Jan 23 10:05:00 +0000 2012
>Originator: Bartosz Kuzma
>Release: NetBSD/i386
>Organization:
>Environment:
>Description:
Add rc.d script for pure-uploadscript, update to 1.0.35 while here.
Changes since 1.0.30:
- An old-standing bug has been fixed: when a file was renamed and overwrote an
existing file, the quota wasn?t properly updated.
- SITE UTIME now supports the 2-arguments syntax in addition to the
5-arguments syntax.
- Support for the MFMT command has been implemented.
- A default directory can now be specified when using the LDAP backend.
- Support SHA1 password hashing in MySQL and PostgreSQL backends
- Support for braces expansion in directory listings has been disabled
? Cf. CVE-2011-0418
- The list of allowed ciphers for SSL/TLS connections can now be specified
(?tlsciphersuite / -J).
- Shell-like escaping is now partially handled when emulating the ?ls? command
in order to improve compatibility with legacy clients.
- Linking issues with MySQL support on Fedora have been solved.
>How-To-Repeat:
>Fix:
--- /dev/null 2012-01-23 10:53:46.000000000 +0100
+++ files/pure_uploadscript.sh 2012-01-23 10:50:21.000000000 +0100
@@ -0,0 +1,36 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD$
+#
+# PROVIDE: pure_uploadscript
+# REQUIRE: pure_ftpd
+
+. /etc/rc.subr
+
+name="pure_uploadscript"
+help_name="pure-uploadscript"
+rcvar=$name
+required_vars="pure_ftpd"
+command="@PREFIX@/sbin/${help_name}"
+command_args="-B"
+start_precmd=pure_uploadscript_precmd
+pidfile="@VARBASE@/run/${help_name}.pid"
+
+pure_uploadscript_precmd()
+{
+ is_uploadscript_enabled=0
+ for opt in ${pure_ftpd_flags}
+ do
+ if [ "x${opt}" = "x-o" ]; then
+ is_uploadscript_enabled=1
+ fi
+ done
+
+ if [ ${is_uploadscript_enabled} -eq 0 ]; then
+ echo "WARNING: uploadscript for pure-ftpd is not enabled"
+ return 1
+ fi
+}
+
+load_rc_config $name
+run_rc_command "$1"
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/net/pure-ftpd/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile 2 Apr 2011 08:00:58 -0000 1.27
+++ Makefile 23 Jan 2012 09:55:09 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.27 2011/04/02 08:00:58 obache Exp $
-DISTNAME= pure-ftpd-1.0.30
+DISTNAME= pure-ftpd-1.0.35
CATEGORIES= net
MASTER_SITES= ftp://ftp.pureftpd.org/pub/pure-ftpd/releases/ \
http://download.pureftpd.org/pub/pure-ftpd/releases/ \
@@ -35,7 +35,7 @@
.include "options.mk"
-RCD_SCRIPTS= pure_ftpd
+RCD_SCRIPTS= pure_ftpd pure_uploadscript
INSTALLATION_DIRS= share/doc/pure-ftpd
post-install:
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/net/pure-ftpd/PLIST,v
retrieving revision 1.7
diff -u -r1.7 PLIST
--- PLIST 14 Jun 2009 18:09:39 -0000 1.7
+++ PLIST 23 Jan 2012 09:55:09 -0000
@@ -27,3 +27,4 @@
share/doc/pure-ftpd/README.TLS
share/doc/pure-ftpd/README.Virtual-Users
share/examples/rc.d/pure_ftpd
+share/examples/rc.d/pure_uploadscript
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/net/pure-ftpd/distinfo,v
retrieving revision 1.12
diff -u -r1.12 distinfo
--- distinfo 2 Apr 2011 08:00:58 -0000 1.12
+++ distinfo 23 Jan 2012 09:55:09 -0000
@@ -1,5 +1,5 @@
$NetBSD: distinfo,v 1.12 2011/04/02 08:00:58 obache Exp $
-SHA1 (pure-ftpd-1.0.30.tar.bz2) = 0b73b80f102f2b62f97e6c7de55fa3e1eba1feaa
-RMD160 (pure-ftpd-1.0.30.tar.bz2) = 137c38d491b311e826076a85589e0ce4f1b46826
-Size (pure-ftpd-1.0.30.tar.bz2) = 475402 bytes
+SHA1 (pure-ftpd-1.0.35.tar.bz2) = e470bd886af68903ffba61832002fe90611f5756
+RMD160 (pure-ftpd-1.0.35.tar.bz2) = 525ae8c4564b7a8f29ec09b882eacaa7a025a911
+Size (pure-ftpd-1.0.35.tar.bz2) = 482387 bytes
cvs diff: Diffing files
Home |
Main Index |
Thread Index |
Old Index