# HG changeset patch # User Richard Dunbar # Date 1591992893 14400 # Node ID 76c6aefc6ac6ac4453e6fa714d90609ac99ae380 # Parent d01158376b1dd5654e430d78abe40e997a6b51cc Add proftpd-tls with init.d script diff -r d01158376b1d -r 76c6aefc6ac6 proftpd-tls/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/proftpd-tls/receipt Fri Jun 12 16:14:53 2020 -0400 @@ -0,0 +1,52 @@ +# SliTaz package receipt. + +PACKAGE="proftpd-tls" +VERSION="1.3.6d" +CATEGORY="network" +SHORT_DESC="Highly configurable FTP server." +MAINTAINER="mojo@slitaz.org" +LICENSE="GPL2" +WEB_SITE="http://www.proftpd.org/" + +TARBALL="proftpd-$VERSION.tar.gz" +WGET_URL="ftp://ftp.proftpd.org/distrib/source/$TARBALL" + +DEPENDS="openssl" +BUILD_DEPENDS="openssl-dev" + +# Rules to configure and make the package. +compile_rules() +{ + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var/run \ + --mandir=/usr/share/man \ + --with-modules=mod_tls \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/libexec + mkdir -p $fs/etc/init.d + + cp -a $install/usr/sbin $fs/usr + cp -a $install/usr/bin $fs/usr + cp -a $install/etc $fs + install -g root -o root -m 0755 $stuff/protocols \ + $fs/etc + install -g root -o root -m 0755 $stuff/proftpd \ + $fs/etc/init.d +} + +post_install() +{ + echo "" + echo -e "\nTo start proftpd server you can run :\n" + echo "/etc/init.d/proftpd start" + echo -e "Or add proftpd to RUN_DAEMONS in /etc/rcS.conf\n" +} diff -r d01158376b1d -r 76c6aefc6ac6 proftpd-tls/stuff/proftpd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/proftpd-tls/stuff/proftpd Fri Jun 12 16:14:53 2020 -0400 @@ -0,0 +1,56 @@ +#!/bin/sh +# /etc/init.d/proftpd : Start, stop and restart proftpd daemon on SliTaz, at +# boot time or with the command line. +# +# To start proftpd server at boot time, just put proftpd in the $RUN_DAEMONS +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf +# +. /etc/init.d/rc.functions +. /etc/daemons.conf + +NAME=proftpd +DESC="$(_ 'ProFTPd Server Daemon')" +DAEMON=/usr/sbin/$NAME + +PIDFILE=/var/run/$NAME.pid + +OPTIONS="" + +case "$1" in + start) + if active_pidfile $PIDFILE $NAME ; then + _ '%s is already running.' + exit 1 + fi + action 'Starting %s: %s...' "$DESC" $NAME + $DAEMON $OPTIONS + status + ;; + stop) + if ! active_pidfile $PIDFILE $NAME ; then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Stopping %s: %s...' "$DESC" $NAME + kill $(cat $PIDFILE) + status + ;; + restart) + if ! active_pidfile $PIDFILE $NAME ; then + _ '%s is not running.' + exit 1 + fi + action 'Restarting %s: %s...' "$DESC" $NAME + kill $(cat $PIDFILE) + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + emsg "$(_ 'Usage:') $0 [start|stop|restart]" + newline + exit 1 + ;; +esac + +exit 0 diff -r d01158376b1d -r 76c6aefc6ac6 proftpd-tls/stuff/protocols --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/proftpd-tls/stuff/protocols Fri Jun 12 16:14:53 2020 -0400 @@ -0,0 +1,64 @@ +# Internet (IP) protocols +# +# Updated from http://www.iana.org/assignments/protocol-numbers and other +# sources. +# New protocols will be added on request if they have been officially +# assigned by IANA and are not historical. +# If you need a huge list of used numbers please install the nmap package. + +ip 0 IP # internet protocol, pseudo protocol number +hopopt 0 HOPOPT # IPv6 Hop-by-Hop Option [RFC1883] +icmp 1 ICMP # internet control message protocol +igmp 2 IGMP # Internet Group Management +ggp 3 GGP # gateway-gateway protocol +ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'') +st 5 ST # ST datagram mode +tcp 6 TCP # transmission control protocol +egp 8 EGP # exterior gateway protocol +igp 9 IGP # any private interior gateway (Cisco) +pup 12 PUP # PARC universal packet protocol +udp 17 UDP # user datagram protocol +hmp 20 HMP # host monitoring protocol +xns-idp 22 XNS-IDP # Xerox NS IDP +rdp 27 RDP # "reliable datagram" protocol +iso-tp4 29 ISO-TP4 # ISO Transport Protocol class 4 [RFC905] +dccp 33 DCCP # Datagram Congestion Control Prot. [RFC4340] +xtp 36 XTP # Xpress Transfer Protocol +ddp 37 DDP # Datagram Delivery Protocol +idpr-cmtp 38 IDPR-CMTP # IDPR Control Message Transport +ipv6 41 IPv6 # Internet Protocol, version 6 +ipv6-route 43 IPv6-Route # Routing Header for IPv6 +ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6 +idrp 45 IDRP # Inter-Domain Routing Protocol +rsvp 46 RSVP # Reservation Protocol +gre 47 GRE # General Routing Encapsulation +esp 50 IPSEC-ESP # Encap Security Payload [RFC2406] +ah 51 IPSEC-AH # Authentication Header [RFC2402] +skip 57 SKIP # SKIP +ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6 +ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6 +ipv6-opts 60 IPv6-Opts # Destination Options for IPv6 +rspf 73 RSPF CPHB # Radio Shortest Path First (officially CPHB) +vmtp 81 VMTP # Versatile Message Transport +eigrp 88 EIGRP # Enhanced Interior Routing Protocol (Cisco) +ospf 89 OSPFIGP # Open Shortest Path First IGP +ax.25 93 AX.25 # AX.25 frames +ipip 94 IPIP # IP-within-IP Encapsulation Protocol +etherip 97 ETHERIP # Ethernet-within-IP Encapsulation [RFC3378] +encap 98 ENCAP # Yet Another IP encapsulation [RFC1241] +# 99 # any private encryption scheme +pim 103 PIM # Protocol Independent Multicast +ipcomp 108 IPCOMP # IP Payload Compression Protocol +vrrp 112 VRRP # Virtual Router Redundancy Protocol [RFC5798] +l2tp 115 L2TP # Layer Two Tunneling Protocol [RFC2661] +isis 124 ISIS # IS-IS over IPv4 +sctp 132 SCTP # Stream Control Transmission Protocol +fc 133 FC # Fibre Channel +mobility-header 135 Mobility-Header # Mobility Support for IPv6 [RFC3775] +udplite 136 UDPLite # UDP-Lite [RFC3828] +mpls-in-ip 137 MPLS-in-IP # MPLS-in-IP [RFC4023] +manet 138 # MANET Protocols [RFC5498] +hip 139 HIP # Host Identity Protocol +shim6 140 Shim6 # Shim6 Protocol [RFC5533] +wesp 141 WESP # Wrapped Encapsulating Security Payload +rohc 142 ROHC # Robust Header Compression diff -r d01158376b1d -r 76c6aefc6ac6 proftpd/receipt --- a/proftpd/receipt Thu Jun 04 17:11:33 2020 +0000 +++ b/proftpd/receipt Fri Jun 12 16:14:53 2020 -0400 @@ -1,7 +1,7 @@ # SliTaz package receipt. PACKAGE="proftpd" -VERSION="1.3.6c" +VERSION="1.3.6d" CATEGORY="network" SHORT_DESC="Highly configurable FTP server." MAINTAINER="pascal.bellard@slitaz.org"