wok rev 8

Add : gcc-lib-base, rp-pppoe, rsync, zlib
author Christophe Lincoln <pankso@slitaz.org>
date Thu Dec 13 15:21:06 2007 +0100 (2007-12-13)
parents 2074fdf6033a
children 9a12d7729c6f
files gcc-lib-base/receipt retawq/receipt rp-pppoe/receipt rp-pppoe/stuff/pppoe-setup rsync/receipt rsync/stuff/etc/init.d/rsyncd rsync/stuff/etc/rsyncd.conf zlib/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gcc-lib-base/receipt	Thu Dec 13 15:21:06 2007 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="gcc-lib-base"
     1.7 +VERSION="4.2.2"
     1.8 +CATEGORY="base-apps"
     1.9 +SHORT_DESC="GCC base libraries, libgcc_s and libstdc++."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +WANTED="gcc"
    1.12 +
    1.13 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.14 +genpkg_rules()
    1.15 +{
    1.16 +	mkdir -p $fs/usr/lib
    1.17 +	cp -a $_pkg/usr/lib/libgcc_s.so* $fs/usr/lib
    1.18 +	cp -a $_pkg/usr/lib/libstdc++.so* $fs/usr/lib
    1.19 +	strip --strip-unneeded $fs/usr/lib/*
    1.20 +	# French locale
    1.21 +	mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES
    1.22 +	cp $_pkg/usr/share/locale/fr/LC_MESSAGES/libstdc++.mo \
    1.23 +	$fs/usr/share/locale/fr/LC_MESSAGES
    1.24 +}
    1.25 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/retawq/receipt	Thu Dec 13 15:21:06 2007 +0100
     2.3 @@ -0,0 +1,29 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="retawq"
     2.7 +VERSION="0.2.6c"
     2.8 +CATEGORY="base-apps"
     2.9 +SHORT_DESC="Text mode Web browser."
    2.10 +MAINTAINER="pankso@slitaz.org"
    2.11 +DEPENDS="ncurses"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="http://retawq.sourceforge.net/"
    2.14 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.15 +
    2.16 +# Rules to configure and make the package.
    2.17 +compile_rules()
    2.18 +{
    2.19 +    cd $src
    2.20 +    ./configure --enable-i18n --enable-local-cgi --path-prefix=/usr \
    2.21 +    --path-doc=/usr/share/doc/retawq --path-man=/usr/share/man
    2.22 +    make
    2.23 +}
    2.24 +
    2.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.26 +genpkg_rules()
    2.27 +{
    2.28 +    mkdir -p $fs/usr/bin $fs/usr/share/locale/fr/LC_MESSAGES
    2.29 +    cp -a $src/retawq $fs/usr/bin
    2.30 +    cp -a $src/i18n/fr.mo $fs/usr/share/locale/fr/LC_MESSAGES/retawq.mo
    2.31 +    strip -s $fs/usr/bin/*
    2.32 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/rp-pppoe/receipt	Thu Dec 13 15:21:06 2007 +0100
     3.3 @@ -0,0 +1,51 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="rp-pppoe"
     3.7 +VERSION="3.8"
     3.8 +CATEGORY="base-apps"
     3.9 +SHORT_DESC="Tools to configure a PPPOE network connection."
    3.10 +MAINTAINER="pankso@slitaz.org"
    3.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.12 +WEB_SITE="http://www.roaringpenguin.com/en/penguin/openSourceProducts/rpPppoe"
    3.13 +WGET_URL="http://www.roaringpenguin.com/files/download/$TARBALL"
    3.14 +
    3.15 +# Rules to configure and make the package.
    3.16 +compile_rules()
    3.17 +{
    3.18 +	cd $src/src
    3.19 +	./configure --prefix=/usr --infodir=/usr/share/info \
    3.20 +	--mandir=/usr/share/man $CONFIGURE_ARGS
    3.21 +	make
    3.22 +}
    3.23 +
    3.24 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.25 +genpkg_rules()
    3.26 +{
    3.27 +	mkdir -p $fs/usr/sbin
    3.28 +	cp -a $src/src/pppoe $fs/usr/sbin
    3.29 +	cp -a $src/src/pppoe-server $fs/usr/sbin
    3.30 +	cp -a $src/src/pppoe-relay $fs/usr/sbin
    3.31 +	cp -a $src/src/pppoe-sniff $fs/usr/sbin
    3.32 +	strip -s $fs/usr/sbin/*
    3.33 +	
    3.34 +	# Scripts to /usr/sbin.
    3.35 +	#
    3.36 +	cp $src/scripts/pppoe-connect $fs/usr/sbin
    3.37 +	cp $src/scripts/pppoe-start $fs/usr/sbin
    3.38 +	cp $src/scripts/pppoe-status $fs/usr/sbin
    3.39 +	cp $src/scripts/pppoe-stop $fs/usr/sbin
    3.40 +	#
    3.41 +	# BUG
    3.42 +	#cp $src/scripts/pppoe-setup $fs/usr/sbin
    3.43 +	cp stuff/pppoe-setup $fs/usr/sbin
    3.44 +	chmod -R 755 $fs/usr/sbin/*
    3.45 +	
    3.46 +	# Config
    3.47 +	mkdir -p $fs/etc/ppp/plugins
    3.48 +	cp $src/configs/pppoe.conf $fs/etc/ppp
    3.49 +	cp $src/configs/firewall-standalone $fs/etc/ppp
    3.50 +	cp $src/configs/firewall-masq $fs/etc/ppp
    3.51 +	cp $src/configs/pppoe-server-options $fs/etc/ppp
    3.52 +	echo "# Directory created by rp-pppoe for kernel-mode plugin" > \
    3.53 +		$fs/etc/ppp/plugins/README
    3.54 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/rp-pppoe/stuff/pppoe-setup	Thu Dec 13 15:21:06 2007 +0100
     4.3 @@ -0,0 +1,352 @@
     4.4 +#!/bin/sh
     4.5 +#***********************************************************************
     4.6 +#
     4.7 +# pppoe-setup
     4.8 +#
     4.9 +# All-purpose slicing/dicing shell script to configure rp-pppoe.
    4.10 +#
    4.11 +# LIC: GPL
    4.12 +#
    4.13 +# Copyright (C) 2000 Roaring Penguin Software Inc.
    4.14 +#
    4.15 +# $Id: pppoe-setup.in,v 1.2 2005/08/10 00:25:18 dfs Exp $
    4.16 +#***********************************************************************
    4.17 +
    4.18 +# From AUTOCONF
    4.19 +prefix=/usr
    4.20 +exec_prefix=${prefix}
    4.21 +
    4.22 +# Paths to programs
    4.23 +IFCONFIG=/sbin/ifconfig
    4.24 +PPPD=/usr/sbin/pppd
    4.25 +PPPOE=${exec_prefix}/sbin/pppoe
    4.26 +ECHO=/bin/echo
    4.27 +LOGGER="/usr/bin/logger -t `basename $0`"
    4.28 +
    4.29 +# Set to "C" locale so we can parse messages from commands
    4.30 +LANG=C
    4.31 +export LANG
    4.32 +
    4.33 +CONFIG=/etc/ppp/pppoe.conf
    4.34 +
    4.35 +# Protect created files
    4.36 +umask 077
    4.37 +
    4.38 +copy() {
    4.39 +    cp $1 $2
    4.40 +    if [ "$?" != 0 ] ; then
    4.41 +	$ECHO "*** Error copying $1 to $2"
    4.42 +	$ECHO "*** Quitting."
    4.43 +	exit 1
    4.44 +    fi
    4.45 +}
    4.46 +
    4.47 +$ECHO "Welcome to the Roaring Penguin PPPoE client setup.  First, I will run"
    4.48 +$ECHO "some checks on your system to make sure the PPPoE client is installed"
    4.49 +$ECHO "properly..."
    4.50 +$ECHO ""
    4.51 +
    4.52 +# Must be root
    4.53 +if [ "`/usr/bin/id -u`" != 0 ] ; then
    4.54 +    $ECHO "$0: Sorry, you must be root to run this script"
    4.55 +    exit 1
    4.56 +fi
    4.57 +
    4.58 +# Prototype config file must exist
    4.59 +if [ ! -r "$CONFIG" ] ; then
    4.60 +    $ECHO "Oh, dear, I don't see the file '$CONFIG' anywhere.  Please"
    4.61 +    $ECHO "re-install the PPPoE client."
    4.62 +    exit 1
    4.63 +fi
    4.64 +
    4.65 +# Must have pppd
    4.66 +if [ ! -x $PPPD ] ; then
    4.67 +    $ECHO "Oops, I can't execute the program '$PPPD'.  You"
    4.68 +    $ECHO "must install the PPP software suite, version 2.3.10 or later."
    4.69 +    exit 1
    4.70 +fi
    4.71 +export CONFIG
    4.72 +. $CONFIG
    4.73 +
    4.74 +if [ "$DEMAND" = "" ] ; then
    4.75 +    DEMAND=no
    4.76 +fi
    4.77 +
    4.78 +# pppoe must exist
    4.79 +if [ ! -x "$PPPOE" ] ; then
    4.80 +    $ECHO "Oh, dear, I can't execute the program '$PPPOE'.  Please"
    4.81 +    $ECHO "re-install the rp-pppoe client."
    4.82 +    exit 1
    4.83 +fi
    4.84 +
    4.85 +$ECHO "Looks good!  Now, please enter some information:"
    4.86 +
    4.87 +while [ true ] ; do
    4.88 +    $ECHO ""
    4.89 +    $ECHO "USER NAME"
    4.90 +    $ECHO ""
    4.91 +    printf "%s" ">>> Enter your PPPoE user name (default $USER): "
    4.92 +    read U
    4.93 +
    4.94 +    if [ "$U" = "" ] ; then
    4.95 +	U="$USER"
    4.96 +    fi
    4.97 +
    4.98 +    # Under Linux, "fix" the default interface if eth1 is not available
    4.99 +    if test `uname -s` = "Linux" ; then
   4.100 +	$IFCONFIG $ETH > /dev/null 2>&1 || ETH=eth0
   4.101 +    fi
   4.102 +    $ECHO ""
   4.103 +    $ECHO "INTERFACE"
   4.104 +    $ECHO ""
   4.105 +    $ECHO ">>> Enter the Ethernet interface connected to the DSL modem"
   4.106 +    $ECHO "For Solaris, this is likely to be something like /dev/hme0."
   4.107 +    $ECHO "For Linux, it will be ethn, where 'n' is a number."
   4.108 +    printf "%s" "(default $ETH): "
   4.109 +    read E
   4.110 +
   4.111 +    if [ "$E" = "" ] ; then
   4.112 +	E="$ETH"
   4.113 +    fi
   4.114 +
   4.115 +    $ECHO ""
   4.116 +    $ECHO "Do you want the link to come up on demand, or stay up continuously?"
   4.117 +    $ECHO "If you want it to come up on demand, enter the idle time in seconds"
   4.118 +    $ECHO "after which the link should be dropped.  If you want the link to"
   4.119 +    $ECHO "stay up permanently, enter 'no' (two letters, lower-case.)"
   4.120 +    $ECHO "NOTE: Demand-activated links do not interact well with dynamic IP"
   4.121 +    $ECHO "addresses.  You may have some problems with demand-activated links."
   4.122 +    printf "%s" ">>> Enter the demand value (default $DEMAND): "
   4.123 +    read D
   4.124 +    if [ "$D" = "" ] ; then
   4.125 +	D=$DEMAND
   4.126 +    fi
   4.127 +
   4.128 +    $ECHO ""
   4.129 +    $ECHO "DNS"
   4.130 +    $ECHO ""
   4.131 +    $ECHO "Please enter the IP address of your ISP's primary DNS server."
   4.132 +    $ECHO "If your ISP claims that 'the server will provide DNS addresses',"
   4.133 +    $ECHO "enter 'server' (all lower-case) here."
   4.134 +    $ECHO "If you just press enter, I will assume you know what you are"
   4.135 +    $ECHO "doing and not modify your DNS setup."
   4.136 +    printf "%s" ">>> Enter the DNS information here: "
   4.137 +
   4.138 +    read DNS1
   4.139 +
   4.140 +
   4.141 +    if [ "$DNS1" != "" ] ; then
   4.142 +        if [ "$DNS1" != "server" ] ; then
   4.143 +	    $ECHO "Please enter the IP address of your ISP's secondary DNS server."
   4.144 +	    $ECHO "If you just press enter, I will assume there is only one DNS server."
   4.145 +	    printf "%s" ">>> Enter the secondary DNS server address here: "
   4.146 +	    read DNS2
   4.147 +	fi
   4.148 +    fi
   4.149 +
   4.150 +    while [ true ] ; do
   4.151 +	$ECHO ""
   4.152 +	$ECHO "PASSWORD"
   4.153 +	$ECHO ""
   4.154 +	stty -echo
   4.155 +	printf "%s" ">>> Please enter your PPPoE password:    "
   4.156 +	read PWD1
   4.157 +	$ECHO ""
   4.158 +	printf "%s" ">>> Please re-enter your PPPoE password: "
   4.159 +	read PWD2
   4.160 +	$ECHO ""
   4.161 +	stty echo
   4.162 +	if [ "$PWD1" = "$PWD2" ] ; then
   4.163 +	    break
   4.164 +	fi
   4.165 +
   4.166 +	printf "%s" ">>> Sorry, the passwords do not match.  Try again? (y/n)"
   4.167 +	read ANS
   4.168 +	case "$ANS" in
   4.169 +	    N|No|NO|Non|n|no|non)
   4.170 +		$ECHO "OK, quitting.  Bye."
   4.171 +		exit 1
   4.172 +	esac
   4.173 +    done
   4.174 +
   4.175 +    # Firewalling
   4.176 +    $ECHO ""
   4.177 +    $ECHO "FIREWALLING"
   4.178 +    $ECHO ""
   4.179 +    if test `uname -s` != "Linux" ; then
   4.180 +	$ECHO "Sorry, firewalling is only supported under Linux.  Consult"
   4.181 +	$ECHO "your operating system manuals for details on setting up"
   4.182 +	$ECHO "packet filters for your system."
   4.183 +	FIREWALL=NONE
   4.184 +    else
   4.185 +	$ECHO "Please choose the firewall rules to use.  Note that these rules are"
   4.186 +	$ECHO "very basic.  You are strongly encouraged to use a more sophisticated"
   4.187 +	$ECHO "firewall setup; however, these will provide basic security.  If you"
   4.188 +	$ECHO "are running any servers on your machine, you must choose 'NONE' and"
   4.189 +	$ECHO "set up firewalling yourself.  Otherwise, the firewall rules will deny"
   4.190 +	$ECHO "access to all standard servers like Web, e-mail, ftp, etc.  If you"
   4.191 +	$ECHO "are using SSH, the rules will block outgoing SSH connections which"
   4.192 +	$ECHO "allocate a privileged source port."
   4.193 +	$ECHO ""
   4.194 +	while [ true ] ; do
   4.195 +	    $ECHO "The firewall choices are:"
   4.196 +	    $ECHO "0 - NONE: This script will not set any firewall rules.  You are responsible"
   4.197 +	    $ECHO "          for ensuring the security of your machine.  You are STRONGLY"
   4.198 +	    $ECHO "          recommended to use some kind of firewall rules."
   4.199 +	    $ECHO "1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation"
   4.200 +	    $ECHO "2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway"
   4.201 +	    $ECHO "                for a LAN"
   4.202 +	    printf "%s" ">>> Choose a type of firewall (0-2): "
   4.203 +	    read a
   4.204 +	    if [ "$a" = 0 -o "$a" = 1 -o "$a" = 2 ] ; then
   4.205 +		break
   4.206 +	    fi
   4.207 +	    $ECHO "Please enter a number from 0 to 2"
   4.208 +	done
   4.209 +
   4.210 +	case "$a" in
   4.211 +	    0)
   4.212 +		FIREWALL=NONE
   4.213 +		;;
   4.214 +	    1)
   4.215 +		FIREWALL=STANDALONE
   4.216 +		;;
   4.217 +	    2)
   4.218 +		FIREWALL=MASQUERADE
   4.219 +		;;
   4.220 +	esac
   4.221 +    fi
   4.222 +
   4.223 +    $ECHO ""
   4.224 +    $ECHO "** Summary of what you entered **"
   4.225 +    $ECHO ""
   4.226 +    $ECHO "Ethernet Interface: $E"
   4.227 +    $ECHO "User name:          $U"
   4.228 +    if [ "$D" = "no" ] ; then
   4.229 +	$ECHO "Activate-on-demand: No"
   4.230 +    else
   4.231 +	$ECHO "Activate-on-demand: Yes; idle timeout = $D seconds"
   4.232 +    fi
   4.233 +
   4.234 +    if [ "$DNS1" != "" ] ; then
   4.235 +        if [ "$DNS1" = "server" ] ; then
   4.236 +	    $ECHO "DNS addresses:      Supplied by ISP's server"
   4.237 +        else
   4.238 +	    $ECHO "Primary DNS:        $DNS1"
   4.239 +	    if [ "$DNS2" != "" ] ; then
   4.240 +		$ECHO "Secondary DNS:      $DNS2"
   4.241 +	    fi
   4.242 +        fi
   4.243 +    else
   4.244 +	$ECHO "DNS:                Do not adjust"
   4.245 +    fi
   4.246 +    $ECHO "Firewalling:        $FIREWALL"
   4.247 +    $ECHO ""
   4.248 +    while [ true ] ; do
   4.249 +        printf "%s" '>>> Accept these settings and adjust configuration files (y/n)? '
   4.250 +        read ANS
   4.251 +	case "ANS" in
   4.252 +	    Y|y|yes|Yes|oui|Oui)
   4.253 +		ANS=y
   4.254 +		;;
   4.255 +            N|n|no|No|non|Non)
   4.256 +		ANS=n
   4.257 +		;;
   4.258 +	esac
   4.259 +	if [ "$ANS" = "y" -o "$ANS" = "n" ] ; then
   4.260 +	    break
   4.261 +        fi
   4.262 +    done
   4.263 +    if [ "$ANS" = "y" ] ; then
   4.264 +	break
   4.265 +    fi
   4.266 +done
   4.267 +
   4.268 +# Adjust configuration files.  First to $CONFIG
   4.269 +
   4.270 +$ECHO "Adjusting $CONFIG"
   4.271 +
   4.272 +copy $CONFIG $CONFIG-bak
   4.273 +if [ "$DNS1" = "server" ] ; then
   4.274 +    DNSTYPE=SERVER
   4.275 +    DNS1=""
   4.276 +    PEERDNS=yes
   4.277 +else
   4.278 +    PEERDNS=no
   4.279 +    if [ "$DNS1" = "" ] ; then
   4.280 +	DNSTYPE=NOCHANGE
   4.281 +    else
   4.282 +	DNSTYPE=SPECIFY
   4.283 +    fi
   4.284 +fi
   4.285 +
   4.286 +# Where is pppd likely to put its pid?
   4.287 +if [ -d /var/run ] ; then
   4.288 +    VARRUN=/var/run
   4.289 +else
   4.290 +    VARRUN=/etc/ppp
   4.291 +fi
   4.292 +
   4.293 +# Some #$(*& ISP's use a slash in the user name...
   4.294 +sed -e "s&^USER=.*&USER='$U'&" \
   4.295 +    -e "s&^ETH=.*&ETH='$E'&" \
   4.296 +    -e "s&^PIDFILE=.*&PIDFILE=\"$VARRUN/\$CF_BASE-pppoe.pid\"&" \
   4.297 +    -e "s/^FIREWALL=.*/FIREWALL=$FIREWALL/" \
   4.298 +    -e "s/^DEMAND=.*/DEMAND=$D/" \
   4.299 +    -e "s/^DNSTYPE=.*/DNSTYPE=$DNSTYPE/" \
   4.300 +    -e "s/^DNS1=.*/DNS1=$DNS1/" \
   4.301 +    -e "s/^DNS2=.*/DNS2=$DNS2/" \
   4.302 +    -e "s/^PEERDNS=.*/PEERDNS=$PEERDNS/" \
   4.303 +    < $CONFIG-bak > $CONFIG
   4.304 +
   4.305 +if [ $? != 0 ] ; then
   4.306 +    $ECHO "** Error modifying $CONFIG"
   4.307 +    $ECHO "** Quitting"
   4.308 +    exit 1
   4.309 +fi
   4.310 +
   4.311 +if [ "$DNS1" != "" ] ; then
   4.312 +    if [ "$DNS1" != "server" ] ; then
   4.313 +	$ECHO "Adjusting /etc/resolv.conf"
   4.314 +	if [ -r /etc/resolv.conf ] ; then
   4.315 +	    grep -s "MADE-BY-RP-PPPOE" /etc/resolv.conf > /dev/null 2>&1
   4.316 +	    if [ "$?" != 0 ] ; then
   4.317 +		$ECHO "  (But first backing it up to /etc/resolv.conf-bak)"
   4.318 +		copy /etc/resolv.conf /etc/resolv.conf-bak
   4.319 +	    fi
   4.320 +	fi
   4.321 +	$ECHO "# MADE-BY-RP-PPPOE" > /etc/resolv.conf
   4.322 +	$ECHO "nameserver $DNS1" >> /etc/resolv.conf
   4.323 +	if [ "$DNS2" != "" ] ; then
   4.324 +	    $ECHO "nameserver $DNS2" >> /etc/resolv.conf
   4.325 +	fi
   4.326 +    fi
   4.327 +fi
   4.328 +
   4.329 +$ECHO "Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets"
   4.330 +if [ -r /etc/ppp/pap-secrets ] ; then
   4.331 +    $ECHO "  (But first backing it up to /etc/ppp/pap-secrets-bak)"
   4.332 +    copy /etc/ppp/pap-secrets /etc/ppp/pap-secrets-bak
   4.333 +else
   4.334 +    cp /dev/null /etc/ppp/pap-secrets-bak
   4.335 +fi
   4.336 +if [ -r /etc/ppp/chap-secrets ] ; then
   4.337 +    $ECHO "  (But first backing it up to /etc/ppp/chap-secrets-bak)"
   4.338 +    copy /etc/ppp/chap-secrets /etc/ppp/chap-secrets-bak
   4.339 +else
   4.340 +    cp /dev/null /etc/ppp/chap-secrets-bak
   4.341 +fi
   4.342 +
   4.343 +egrep -v "^$U|^\"$U\"" /etc/ppp/pap-secrets-bak > /etc/ppp/pap-secrets
   4.344 +$ECHO "\"$U\"	*	\"$PWD1\"" >> /etc/ppp/pap-secrets
   4.345 +egrep -v "^$U|^\"$U\"" /etc/ppp/chap-secrets-bak > /etc/ppp/chap-secrets
   4.346 +$ECHO "\"$U\"	*	\"$PWD1\"" >> /etc/ppp/chap-secrets
   4.347 +
   4.348 +$ECHO ""
   4.349 +$ECHO ""
   4.350 +$ECHO ""
   4.351 +$ECHO "Congratulations, it should be all set up!"
   4.352 +$ECHO ""
   4.353 +$ECHO "Type 'pppoe-start' to bring up your PPPoE link and 'pppoe-stop' to bring"
   4.354 +$ECHO "it down.  Type 'pppoe-status' to see the link status."
   4.355 +exit 0
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/rsync/receipt	Thu Dec 13 15:21:06 2007 +0100
     5.3 @@ -0,0 +1,33 @@
     5.4 +# SliTaz package receipt.
     5.5 +
     5.6 +PACKAGE="rsync"
     5.7 +VERSION="2.6.9"
     5.8 +CATEGORY="base-apps"
     5.9 +SHORT_DESC="Utility that provides fast incremental."
    5.10 +MAINTAINER="pankso@slitaz.org"
    5.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    5.12 +WEB_SITE="http://rsync.samba.org/"
    5.13 +WGET_URL="http://rsync.samba.org/ftp/rsync/$TARBALL"
    5.14 +
    5.15 +# Rules to configure and make the package.
    5.16 +compile_rules()
    5.17 +{
    5.18 +	cd $src
    5.19 +	./configure --prefix=/usr --mandir=/usr/share/man \
    5.20 +	$CONFIGURE_ARGS
    5.21 +	make
    5.22 +	make DESTDIR=$PWD/_pkg install
    5.23 +}
    5.24 +
    5.25 +# Rules to gen a SliTaz package suitable for Tazpkg.
    5.26 +genpkg_rules()
    5.27 +{
    5.28 +	mkdir -p $fs/usr
    5.29 +	cp -a $_pkg/usr/bin $fs/usr
    5.30 +	strip -s $fs/usr/bin/*
    5.31 +	# Config file is /etc/rsyncd.conf.
    5.32 +	# User and passwd in /etc/rsyncd.secrets, syntax : user:passwd
    5.33 +	#
    5.34 +	cp -a stuff/etc $fs
    5.35 +	chmod 0644 $fs/etc/rsyncd.conf
    5.36 +}
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/rsync/stuff/etc/init.d/rsyncd	Thu Dec 13 15:21:06 2007 +0100
     6.3 @@ -0,0 +1,57 @@
     6.4 +#!/bin/sh
     6.5 +# /etc/init.d/rsyncd: Start, stop and restart Rsync deamon on SliTaz, at boot
     6.6 +# time or with the command line.
     6.7 +#
     6.8 +# To start daemon at boot time, just put the right name in the $RUN_DAEMONS
     6.9 +# variable of /etc/rcS.conf and configure options with /etc/daemons.conf.
    6.10 +#
    6.11 +. /etc/init.d/rc.functions
    6.12 +. /etc/daemons.conf
    6.13 +
    6.14 +NAME=Rsyncd
    6.15 +DESC="rsync deamon"
    6.16 +DAEMON=/usr/bin/rsync
    6.17 +OPTIONS=$RSYNCD_OPTIONS
    6.18 +PIDFILE=/var/run/rsyncd.pid
    6.19 +
    6.20 +case "$1" in
    6.21 +  start)
    6.22 +    if [ -f $PIDFILE ] ; then
    6.23 +      echo "$NAME already running."
    6.24 +      exit 1
    6.25 +    fi
    6.26 +    echo -n "Starting $DESC: $NAME... "
    6.27 +    $DAEMON $OPTIONS 
    6.28 +    status
    6.29 +    ;;
    6.30 +  stop)
    6.31 +    if [ ! -f $PIDFILE ] ; then
    6.32 +      echo "$NAME is not running."
    6.33 +      exit 1
    6.34 +    fi
    6.35 +    echo -n "Stopping $DESC: $NAME... "
    6.36 +    kill `cat $PIDFILE`
    6.37 +    rm $PIDFILE
    6.38 +    status
    6.39 +    ;;
    6.40 +  restart)
    6.41 +    if [ ! -f $PIDFILE ] ; then
    6.42 +      echo "$NAME is not running."
    6.43 +      exit 1
    6.44 +    fi
    6.45 +    echo -n "Restarting $DESC: $NAME... "
    6.46 +    kill `cat $PIDFILE`
    6.47 +    rm $PIDFILE
    6.48 +    sleep 2
    6.49 +    $DAEMON $OPTIONS
    6.50 +    status
    6.51 +    ;;
    6.52 +  *)
    6.53 +    echo ""
    6.54 +    echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
    6.55 +    echo ""
    6.56 +    exit 1
    6.57 +    ;;
    6.58 +esac
    6.59 +
    6.60 +exit 0
     7.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     7.2 +++ b/rsync/stuff/etc/rsyncd.conf	Thu Dec 13 15:21:06 2007 +0100
     7.3 @@ -0,0 +1,18 @@
     7.4 +# /etc/rsyncd.conf: Rsync deamon configuration file.
     7.5 +#
     7.6 +
     7.7 +max connections = 2
     7.8 +use chroot = yes
     7.9 +#motd file = /etc/rsyncd.motd
    7.10 +pid file = /var/run/rsyncd.pid
    7.11 +
    7.12 +# Deny/allow hosts by IP.
    7.13 +#
    7.14 +#hosts allow = 192.168.1.100/255.255.0.0
    7.15 +#hosts deny = *
    7.16 +
    7.17 +[web-server]
    7.18 +        path = /var/www
    7.19 +        comment = WWW rsync module
    7.20 +        exclude = cgi-bin/
    7.21 +
     8.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     8.2 +++ b/zlib/receipt	Thu Dec 13 15:21:06 2007 +0100
     8.3 @@ -0,0 +1,26 @@
     8.4 +# SliTaz package receipt.
     8.5 +
     8.6 +PACKAGE="zlib"
     8.7 +VERSION="1.2.3"
     8.8 +CATEGORY="base-apps"
     8.9 +SHORT_DESC="Compression library."
    8.10 +MAINTAINER="pankso@slitaz.org"
    8.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    8.12 +WEB_SITE="http://www.zlib.net/"
    8.13 +WGET_URL="http://www.gzip.org/zlib/$TARBALL"
    8.14 +
    8.15 +# Rules to configure and make the package.
    8.16 +compile_rules()
    8.17 +{
    8.18 +    cd $PACKAGE-$VERSION
    8.19 +    ./configure --shared --prefix=/usr
    8.20 +    make
    8.21 +}
    8.22 +
    8.23 +# Rules to gen a SliTaz package suitable for Tazpkg.
    8.24 +genpkg_rules()
    8.25 +{
    8.26 +    mkdir -p $fs/usr/lib
    8.27 +    cp -a $PACKAGE-$VERSION/libz.so* $fs/usr/lib
    8.28 +    strip -s $fs/usr/lib/*
    8.29 +}