wok-current rev 23842
Add proftpd-tls with init.d script
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Fri Jun 12 16:14:53 2020 -0400 (2020-06-12) |
parents | d01158376b1d |
children | dd2e01a112ac |
files | proftpd-tls/receipt proftpd-tls/stuff/proftpd proftpd-tls/stuff/protocols proftpd/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/proftpd-tls/receipt Fri Jun 12 16:14:53 2020 -0400 1.3 @@ -0,0 +1,52 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="proftpd-tls" 1.7 +VERSION="1.3.6d" 1.8 +CATEGORY="network" 1.9 +SHORT_DESC="Highly configurable FTP server." 1.10 +MAINTAINER="mojo@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="http://www.proftpd.org/" 1.13 + 1.14 +TARBALL="proftpd-$VERSION.tar.gz" 1.15 +WGET_URL="ftp://ftp.proftpd.org/distrib/source/$TARBALL" 1.16 + 1.17 +DEPENDS="openssl" 1.18 +BUILD_DEPENDS="openssl-dev" 1.19 + 1.20 +# Rules to configure and make the package. 1.21 +compile_rules() 1.22 +{ 1.23 + ./configure \ 1.24 + --prefix=/usr \ 1.25 + --sysconfdir=/etc \ 1.26 + --localstatedir=/var/run \ 1.27 + --mandir=/usr/share/man \ 1.28 + --with-modules=mod_tls \ 1.29 + $CONFIGURE_ARGS && 1.30 + make && 1.31 + make DESTDIR=$DESTDIR install 1.32 +} 1.33 + 1.34 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.35 +genpkg_rules() 1.36 +{ 1.37 + mkdir -p $fs/usr/libexec 1.38 + mkdir -p $fs/etc/init.d 1.39 + 1.40 + cp -a $install/usr/sbin $fs/usr 1.41 + cp -a $install/usr/bin $fs/usr 1.42 + cp -a $install/etc $fs 1.43 + install -g root -o root -m 0755 $stuff/protocols \ 1.44 + $fs/etc 1.45 + install -g root -o root -m 0755 $stuff/proftpd \ 1.46 + $fs/etc/init.d 1.47 +} 1.48 + 1.49 +post_install() 1.50 +{ 1.51 + echo "" 1.52 + echo -e "\nTo start proftpd server you can run :\n" 1.53 + echo "/etc/init.d/proftpd start" 1.54 + echo -e "Or add proftpd to RUN_DAEMONS in /etc/rcS.conf\n" 1.55 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/proftpd-tls/stuff/proftpd Fri Jun 12 16:14:53 2020 -0400 2.3 @@ -0,0 +1,56 @@ 2.4 +#!/bin/sh 2.5 +# /etc/init.d/proftpd : Start, stop and restart proftpd daemon on SliTaz, at 2.6 +# boot time or with the command line. 2.7 +# 2.8 +# To start proftpd server at boot time, just put proftpd in the $RUN_DAEMONS 2.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf 2.10 +# 2.11 +. /etc/init.d/rc.functions 2.12 +. /etc/daemons.conf 2.13 + 2.14 +NAME=proftpd 2.15 +DESC="$(_ 'ProFTPd Server Daemon')" 2.16 +DAEMON=/usr/sbin/$NAME 2.17 + 2.18 +PIDFILE=/var/run/$NAME.pid 2.19 + 2.20 +OPTIONS="" 2.21 + 2.22 +case "$1" in 2.23 + start) 2.24 + if active_pidfile $PIDFILE $NAME ; then 2.25 + _ '%s is already running.' 2.26 + exit 1 2.27 + fi 2.28 + action 'Starting %s: %s...' "$DESC" $NAME 2.29 + $DAEMON $OPTIONS 2.30 + status 2.31 + ;; 2.32 + stop) 2.33 + if ! active_pidfile $PIDFILE $NAME ; then 2.34 + _ '%s is not running.' $NAME 2.35 + exit 1 2.36 + fi 2.37 + action 'Stopping %s: %s...' "$DESC" $NAME 2.38 + kill $(cat $PIDFILE) 2.39 + status 2.40 + ;; 2.41 + restart) 2.42 + if ! active_pidfile $PIDFILE $NAME ; then 2.43 + _ '%s is not running.' 2.44 + exit 1 2.45 + fi 2.46 + action 'Restarting %s: %s...' "$DESC" $NAME 2.47 + kill $(cat $PIDFILE) 2.48 + sleep 2 2.49 + $DAEMON $OPTIONS 2.50 + status 2.51 + ;; 2.52 + *) 2.53 + emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]" 2.54 + newline 2.55 + exit 1 2.56 + ;; 2.57 +esac 2.58 + 2.59 +exit 0
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/proftpd-tls/stuff/protocols Fri Jun 12 16:14:53 2020 -0400 3.3 @@ -0,0 +1,64 @@ 3.4 +# Internet (IP) protocols 3.5 +# 3.6 +# Updated from http://www.iana.org/assignments/protocol-numbers and other 3.7 +# sources. 3.8 +# New protocols will be added on request if they have been officially 3.9 +# assigned by IANA and are not historical. 3.10 +# If you need a huge list of used numbers please install the nmap package. 3.11 + 3.12 +ip 0 IP # internet protocol, pseudo protocol number 3.13 +hopopt 0 HOPOPT # IPv6 Hop-by-Hop Option [RFC1883] 3.14 +icmp 1 ICMP # internet control message protocol 3.15 +igmp 2 IGMP # Internet Group Management 3.16 +ggp 3 GGP # gateway-gateway protocol 3.17 +ipencap 4 IP-ENCAP # IP encapsulated in IP (officially ``IP'') 3.18 +st 5 ST # ST datagram mode 3.19 +tcp 6 TCP # transmission control protocol 3.20 +egp 8 EGP # exterior gateway protocol 3.21 +igp 9 IGP # any private interior gateway (Cisco) 3.22 +pup 12 PUP # PARC universal packet protocol 3.23 +udp 17 UDP # user datagram protocol 3.24 +hmp 20 HMP # host monitoring protocol 3.25 +xns-idp 22 XNS-IDP # Xerox NS IDP 3.26 +rdp 27 RDP # "reliable datagram" protocol 3.27 +iso-tp4 29 ISO-TP4 # ISO Transport Protocol class 4 [RFC905] 3.28 +dccp 33 DCCP # Datagram Congestion Control Prot. [RFC4340] 3.29 +xtp 36 XTP # Xpress Transfer Protocol 3.30 +ddp 37 DDP # Datagram Delivery Protocol 3.31 +idpr-cmtp 38 IDPR-CMTP # IDPR Control Message Transport 3.32 +ipv6 41 IPv6 # Internet Protocol, version 6 3.33 +ipv6-route 43 IPv6-Route # Routing Header for IPv6 3.34 +ipv6-frag 44 IPv6-Frag # Fragment Header for IPv6 3.35 +idrp 45 IDRP # Inter-Domain Routing Protocol 3.36 +rsvp 46 RSVP # Reservation Protocol 3.37 +gre 47 GRE # General Routing Encapsulation 3.38 +esp 50 IPSEC-ESP # Encap Security Payload [RFC2406] 3.39 +ah 51 IPSEC-AH # Authentication Header [RFC2402] 3.40 +skip 57 SKIP # SKIP 3.41 +ipv6-icmp 58 IPv6-ICMP # ICMP for IPv6 3.42 +ipv6-nonxt 59 IPv6-NoNxt # No Next Header for IPv6 3.43 +ipv6-opts 60 IPv6-Opts # Destination Options for IPv6 3.44 +rspf 73 RSPF CPHB # Radio Shortest Path First (officially CPHB) 3.45 +vmtp 81 VMTP # Versatile Message Transport 3.46 +eigrp 88 EIGRP # Enhanced Interior Routing Protocol (Cisco) 3.47 +ospf 89 OSPFIGP # Open Shortest Path First IGP 3.48 +ax.25 93 AX.25 # AX.25 frames 3.49 +ipip 94 IPIP # IP-within-IP Encapsulation Protocol 3.50 +etherip 97 ETHERIP # Ethernet-within-IP Encapsulation [RFC3378] 3.51 +encap 98 ENCAP # Yet Another IP encapsulation [RFC1241] 3.52 +# 99 # any private encryption scheme 3.53 +pim 103 PIM # Protocol Independent Multicast 3.54 +ipcomp 108 IPCOMP # IP Payload Compression Protocol 3.55 +vrrp 112 VRRP # Virtual Router Redundancy Protocol [RFC5798] 3.56 +l2tp 115 L2TP # Layer Two Tunneling Protocol [RFC2661] 3.57 +isis 124 ISIS # IS-IS over IPv4 3.58 +sctp 132 SCTP # Stream Control Transmission Protocol 3.59 +fc 133 FC # Fibre Channel 3.60 +mobility-header 135 Mobility-Header # Mobility Support for IPv6 [RFC3775] 3.61 +udplite 136 UDPLite # UDP-Lite [RFC3828] 3.62 +mpls-in-ip 137 MPLS-in-IP # MPLS-in-IP [RFC4023] 3.63 +manet 138 # MANET Protocols [RFC5498] 3.64 +hip 139 HIP # Host Identity Protocol 3.65 +shim6 140 Shim6 # Shim6 Protocol [RFC5533] 3.66 +wesp 141 WESP # Wrapped Encapsulating Security Payload 3.67 +rohc 142 ROHC # Robust Header Compression
4.1 --- a/proftpd/receipt Thu Jun 04 17:11:33 2020 +0000 4.2 +++ b/proftpd/receipt Fri Jun 12 16:14:53 2020 -0400 4.3 @@ -1,7 +1,7 @@ 4.4 # SliTaz package receipt. 4.5 4.6 PACKAGE="proftpd" 4.7 -VERSION="1.3.6c" 4.8 +VERSION="1.3.6d" 4.9 CATEGORY="network" 4.10 SHORT_DESC="Highly configurable FTP server." 4.11 MAINTAINER="pascal.bellard@slitaz.org"