# HG changeset patch # User Christophe Lincoln # Date 1197555666 -3600 # Node ID 580279b0298b3a9f55cd8219b9d2b2530593479c # Parent 2074fdf6033a6dece8635373302ca8467ee44552 Add : gcc-lib-base, rp-pppoe, rsync, zlib diff -r 2074fdf6033a -r 580279b0298b gcc-lib-base/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gcc-lib-base/receipt Thu Dec 13 15:21:06 2007 +0100 @@ -0,0 +1,22 @@ +# SliTaz package receipt. + +PACKAGE="gcc-lib-base" +VERSION="4.2.2" +CATEGORY="base-apps" +SHORT_DESC="GCC base libraries, libgcc_s and libstdc++." +MAINTAINER="pankso@slitaz.org" +WANTED="gcc" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/lib/libgcc_s.so* $fs/usr/lib + cp -a $_pkg/usr/lib/libstdc++.so* $fs/usr/lib + strip --strip-unneeded $fs/usr/lib/* + # French locale + mkdir -p $fs/usr/share/locale/fr/LC_MESSAGES + cp $_pkg/usr/share/locale/fr/LC_MESSAGES/libstdc++.mo \ + $fs/usr/share/locale/fr/LC_MESSAGES +} + diff -r 2074fdf6033a -r 580279b0298b retawq/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/retawq/receipt Thu Dec 13 15:21:06 2007 +0100 @@ -0,0 +1,29 @@ +# SliTaz package receipt. + +PACKAGE="retawq" +VERSION="0.2.6c" +CATEGORY="base-apps" +SHORT_DESC="Text mode Web browser." +MAINTAINER="pankso@slitaz.org" +DEPENDS="ncurses" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://retawq.sourceforge.net/" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --enable-i18n --enable-local-cgi --path-prefix=/usr \ + --path-doc=/usr/share/doc/retawq --path-man=/usr/share/man + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/share/locale/fr/LC_MESSAGES + cp -a $src/retawq $fs/usr/bin + cp -a $src/i18n/fr.mo $fs/usr/share/locale/fr/LC_MESSAGES/retawq.mo + strip -s $fs/usr/bin/* +} diff -r 2074fdf6033a -r 580279b0298b rp-pppoe/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rp-pppoe/receipt Thu Dec 13 15:21:06 2007 +0100 @@ -0,0 +1,51 @@ +# SliTaz package receipt. + +PACKAGE="rp-pppoe" +VERSION="3.8" +CATEGORY="base-apps" +SHORT_DESC="Tools to configure a PPPOE network connection." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.roaringpenguin.com/en/penguin/openSourceProducts/rpPppoe" +WGET_URL="http://www.roaringpenguin.com/files/download/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src/src + ./configure --prefix=/usr --infodir=/usr/share/info \ + --mandir=/usr/share/man $CONFIGURE_ARGS + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/sbin + cp -a $src/src/pppoe $fs/usr/sbin + cp -a $src/src/pppoe-server $fs/usr/sbin + cp -a $src/src/pppoe-relay $fs/usr/sbin + cp -a $src/src/pppoe-sniff $fs/usr/sbin + strip -s $fs/usr/sbin/* + + # Scripts to /usr/sbin. + # + cp $src/scripts/pppoe-connect $fs/usr/sbin + cp $src/scripts/pppoe-start $fs/usr/sbin + cp $src/scripts/pppoe-status $fs/usr/sbin + cp $src/scripts/pppoe-stop $fs/usr/sbin + # + # BUG + #cp $src/scripts/pppoe-setup $fs/usr/sbin + cp stuff/pppoe-setup $fs/usr/sbin + chmod -R 755 $fs/usr/sbin/* + + # Config + mkdir -p $fs/etc/ppp/plugins + cp $src/configs/pppoe.conf $fs/etc/ppp + cp $src/configs/firewall-standalone $fs/etc/ppp + cp $src/configs/firewall-masq $fs/etc/ppp + cp $src/configs/pppoe-server-options $fs/etc/ppp + echo "# Directory created by rp-pppoe for kernel-mode plugin" > \ + $fs/etc/ppp/plugins/README +} diff -r 2074fdf6033a -r 580279b0298b rp-pppoe/stuff/pppoe-setup --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rp-pppoe/stuff/pppoe-setup Thu Dec 13 15:21:06 2007 +0100 @@ -0,0 +1,352 @@ +#!/bin/sh +#*********************************************************************** +# +# pppoe-setup +# +# All-purpose slicing/dicing shell script to configure rp-pppoe. +# +# LIC: GPL +# +# Copyright (C) 2000 Roaring Penguin Software Inc. +# +# $Id: pppoe-setup.in,v 1.2 2005/08/10 00:25:18 dfs Exp $ +#*********************************************************************** + +# From AUTOCONF +prefix=/usr +exec_prefix=${prefix} + +# Paths to programs +IFCONFIG=/sbin/ifconfig +PPPD=/usr/sbin/pppd +PPPOE=${exec_prefix}/sbin/pppoe +ECHO=/bin/echo +LOGGER="/usr/bin/logger -t `basename $0`" + +# Set to "C" locale so we can parse messages from commands +LANG=C +export LANG + +CONFIG=/etc/ppp/pppoe.conf + +# Protect created files +umask 077 + +copy() { + cp $1 $2 + if [ "$?" != 0 ] ; then + $ECHO "*** Error copying $1 to $2" + $ECHO "*** Quitting." + exit 1 + fi +} + +$ECHO "Welcome to the Roaring Penguin PPPoE client setup. First, I will run" +$ECHO "some checks on your system to make sure the PPPoE client is installed" +$ECHO "properly..." +$ECHO "" + +# Must be root +if [ "`/usr/bin/id -u`" != 0 ] ; then + $ECHO "$0: Sorry, you must be root to run this script" + exit 1 +fi + +# Prototype config file must exist +if [ ! -r "$CONFIG" ] ; then + $ECHO "Oh, dear, I don't see the file '$CONFIG' anywhere. Please" + $ECHO "re-install the PPPoE client." + exit 1 +fi + +# Must have pppd +if [ ! -x $PPPD ] ; then + $ECHO "Oops, I can't execute the program '$PPPD'. You" + $ECHO "must install the PPP software suite, version 2.3.10 or later." + exit 1 +fi +export CONFIG +. $CONFIG + +if [ "$DEMAND" = "" ] ; then + DEMAND=no +fi + +# pppoe must exist +if [ ! -x "$PPPOE" ] ; then + $ECHO "Oh, dear, I can't execute the program '$PPPOE'. Please" + $ECHO "re-install the rp-pppoe client." + exit 1 +fi + +$ECHO "Looks good! Now, please enter some information:" + +while [ true ] ; do + $ECHO "" + $ECHO "USER NAME" + $ECHO "" + printf "%s" ">>> Enter your PPPoE user name (default $USER): " + read U + + if [ "$U" = "" ] ; then + U="$USER" + fi + + # Under Linux, "fix" the default interface if eth1 is not available + if test `uname -s` = "Linux" ; then + $IFCONFIG $ETH > /dev/null 2>&1 || ETH=eth0 + fi + $ECHO "" + $ECHO "INTERFACE" + $ECHO "" + $ECHO ">>> Enter the Ethernet interface connected to the DSL modem" + $ECHO "For Solaris, this is likely to be something like /dev/hme0." + $ECHO "For Linux, it will be ethn, where 'n' is a number." + printf "%s" "(default $ETH): " + read E + + if [ "$E" = "" ] ; then + E="$ETH" + fi + + $ECHO "" + $ECHO "Do you want the link to come up on demand, or stay up continuously?" + $ECHO "If you want it to come up on demand, enter the idle time in seconds" + $ECHO "after which the link should be dropped. If you want the link to" + $ECHO "stay up permanently, enter 'no' (two letters, lower-case.)" + $ECHO "NOTE: Demand-activated links do not interact well with dynamic IP" + $ECHO "addresses. You may have some problems with demand-activated links." + printf "%s" ">>> Enter the demand value (default $DEMAND): " + read D + if [ "$D" = "" ] ; then + D=$DEMAND + fi + + $ECHO "" + $ECHO "DNS" + $ECHO "" + $ECHO "Please enter the IP address of your ISP's primary DNS server." + $ECHO "If your ISP claims that 'the server will provide DNS addresses'," + $ECHO "enter 'server' (all lower-case) here." + $ECHO "If you just press enter, I will assume you know what you are" + $ECHO "doing and not modify your DNS setup." + printf "%s" ">>> Enter the DNS information here: " + + read DNS1 + + + if [ "$DNS1" != "" ] ; then + if [ "$DNS1" != "server" ] ; then + $ECHO "Please enter the IP address of your ISP's secondary DNS server." + $ECHO "If you just press enter, I will assume there is only one DNS server." + printf "%s" ">>> Enter the secondary DNS server address here: " + read DNS2 + fi + fi + + while [ true ] ; do + $ECHO "" + $ECHO "PASSWORD" + $ECHO "" + stty -echo + printf "%s" ">>> Please enter your PPPoE password: " + read PWD1 + $ECHO "" + printf "%s" ">>> Please re-enter your PPPoE password: " + read PWD2 + $ECHO "" + stty echo + if [ "$PWD1" = "$PWD2" ] ; then + break + fi + + printf "%s" ">>> Sorry, the passwords do not match. Try again? (y/n)" + read ANS + case "$ANS" in + N|No|NO|Non|n|no|non) + $ECHO "OK, quitting. Bye." + exit 1 + esac + done + + # Firewalling + $ECHO "" + $ECHO "FIREWALLING" + $ECHO "" + if test `uname -s` != "Linux" ; then + $ECHO "Sorry, firewalling is only supported under Linux. Consult" + $ECHO "your operating system manuals for details on setting up" + $ECHO "packet filters for your system." + FIREWALL=NONE + else + $ECHO "Please choose the firewall rules to use. Note that these rules are" + $ECHO "very basic. You are strongly encouraged to use a more sophisticated" + $ECHO "firewall setup; however, these will provide basic security. If you" + $ECHO "are running any servers on your machine, you must choose 'NONE' and" + $ECHO "set up firewalling yourself. Otherwise, the firewall rules will deny" + $ECHO "access to all standard servers like Web, e-mail, ftp, etc. If you" + $ECHO "are using SSH, the rules will block outgoing SSH connections which" + $ECHO "allocate a privileged source port." + $ECHO "" + while [ true ] ; do + $ECHO "The firewall choices are:" + $ECHO "0 - NONE: This script will not set any firewall rules. You are responsible" + $ECHO " for ensuring the security of your machine. You are STRONGLY" + $ECHO " recommended to use some kind of firewall rules." + $ECHO "1 - STANDALONE: Appropriate for a basic stand-alone web-surfing workstation" + $ECHO "2 - MASQUERADE: Appropriate for a machine acting as an Internet gateway" + $ECHO " for a LAN" + printf "%s" ">>> Choose a type of firewall (0-2): " + read a + if [ "$a" = 0 -o "$a" = 1 -o "$a" = 2 ] ; then + break + fi + $ECHO "Please enter a number from 0 to 2" + done + + case "$a" in + 0) + FIREWALL=NONE + ;; + 1) + FIREWALL=STANDALONE + ;; + 2) + FIREWALL=MASQUERADE + ;; + esac + fi + + $ECHO "" + $ECHO "** Summary of what you entered **" + $ECHO "" + $ECHO "Ethernet Interface: $E" + $ECHO "User name: $U" + if [ "$D" = "no" ] ; then + $ECHO "Activate-on-demand: No" + else + $ECHO "Activate-on-demand: Yes; idle timeout = $D seconds" + fi + + if [ "$DNS1" != "" ] ; then + if [ "$DNS1" = "server" ] ; then + $ECHO "DNS addresses: Supplied by ISP's server" + else + $ECHO "Primary DNS: $DNS1" + if [ "$DNS2" != "" ] ; then + $ECHO "Secondary DNS: $DNS2" + fi + fi + else + $ECHO "DNS: Do not adjust" + fi + $ECHO "Firewalling: $FIREWALL" + $ECHO "" + while [ true ] ; do + printf "%s" '>>> Accept these settings and adjust configuration files (y/n)? ' + read ANS + case "ANS" in + Y|y|yes|Yes|oui|Oui) + ANS=y + ;; + N|n|no|No|non|Non) + ANS=n + ;; + esac + if [ "$ANS" = "y" -o "$ANS" = "n" ] ; then + break + fi + done + if [ "$ANS" = "y" ] ; then + break + fi +done + +# Adjust configuration files. First to $CONFIG + +$ECHO "Adjusting $CONFIG" + +copy $CONFIG $CONFIG-bak +if [ "$DNS1" = "server" ] ; then + DNSTYPE=SERVER + DNS1="" + PEERDNS=yes +else + PEERDNS=no + if [ "$DNS1" = "" ] ; then + DNSTYPE=NOCHANGE + else + DNSTYPE=SPECIFY + fi +fi + +# Where is pppd likely to put its pid? +if [ -d /var/run ] ; then + VARRUN=/var/run +else + VARRUN=/etc/ppp +fi + +# Some #$(*& ISP's use a slash in the user name... +sed -e "s&^USER=.*&USER='$U'&" \ + -e "s&^ETH=.*Ð='$E'&" \ + -e "s&^PIDFILE=.*&PIDFILE=\"$VARRUN/\$CF_BASE-pppoe.pid\"&" \ + -e "s/^FIREWALL=.*/FIREWALL=$FIREWALL/" \ + -e "s/^DEMAND=.*/DEMAND=$D/" \ + -e "s/^DNSTYPE=.*/DNSTYPE=$DNSTYPE/" \ + -e "s/^DNS1=.*/DNS1=$DNS1/" \ + -e "s/^DNS2=.*/DNS2=$DNS2/" \ + -e "s/^PEERDNS=.*/PEERDNS=$PEERDNS/" \ + < $CONFIG-bak > $CONFIG + +if [ $? != 0 ] ; then + $ECHO "** Error modifying $CONFIG" + $ECHO "** Quitting" + exit 1 +fi + +if [ "$DNS1" != "" ] ; then + if [ "$DNS1" != "server" ] ; then + $ECHO "Adjusting /etc/resolv.conf" + if [ -r /etc/resolv.conf ] ; then + grep -s "MADE-BY-RP-PPPOE" /etc/resolv.conf > /dev/null 2>&1 + if [ "$?" != 0 ] ; then + $ECHO " (But first backing it up to /etc/resolv.conf-bak)" + copy /etc/resolv.conf /etc/resolv.conf-bak + fi + fi + $ECHO "# MADE-BY-RP-PPPOE" > /etc/resolv.conf + $ECHO "nameserver $DNS1" >> /etc/resolv.conf + if [ "$DNS2" != "" ] ; then + $ECHO "nameserver $DNS2" >> /etc/resolv.conf + fi + fi +fi + +$ECHO "Adjusting /etc/ppp/pap-secrets and /etc/ppp/chap-secrets" +if [ -r /etc/ppp/pap-secrets ] ; then + $ECHO " (But first backing it up to /etc/ppp/pap-secrets-bak)" + copy /etc/ppp/pap-secrets /etc/ppp/pap-secrets-bak +else + cp /dev/null /etc/ppp/pap-secrets-bak +fi +if [ -r /etc/ppp/chap-secrets ] ; then + $ECHO " (But first backing it up to /etc/ppp/chap-secrets-bak)" + copy /etc/ppp/chap-secrets /etc/ppp/chap-secrets-bak +else + cp /dev/null /etc/ppp/chap-secrets-bak +fi + +egrep -v "^$U|^\"$U\"" /etc/ppp/pap-secrets-bak > /etc/ppp/pap-secrets +$ECHO "\"$U\" * \"$PWD1\"" >> /etc/ppp/pap-secrets +egrep -v "^$U|^\"$U\"" /etc/ppp/chap-secrets-bak > /etc/ppp/chap-secrets +$ECHO "\"$U\" * \"$PWD1\"" >> /etc/ppp/chap-secrets + +$ECHO "" +$ECHO "" +$ECHO "" +$ECHO "Congratulations, it should be all set up!" +$ECHO "" +$ECHO "Type 'pppoe-start' to bring up your PPPoE link and 'pppoe-stop' to bring" +$ECHO "it down. Type 'pppoe-status' to see the link status." +exit 0 diff -r 2074fdf6033a -r 580279b0298b rsync/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rsync/receipt Thu Dec 13 15:21:06 2007 +0100 @@ -0,0 +1,33 @@ +# SliTaz package receipt. + +PACKAGE="rsync" +VERSION="2.6.9" +CATEGORY="base-apps" +SHORT_DESC="Utility that provides fast incremental." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://rsync.samba.org/" +WGET_URL="http://rsync.samba.org/ftp/rsync/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + ./configure --prefix=/usr --mandir=/usr/share/man \ + $CONFIGURE_ARGS + make + make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr + cp -a $_pkg/usr/bin $fs/usr + strip -s $fs/usr/bin/* + # Config file is /etc/rsyncd.conf. + # User and passwd in /etc/rsyncd.secrets, syntax : user:passwd + # + cp -a stuff/etc $fs + chmod 0644 $fs/etc/rsyncd.conf +} diff -r 2074fdf6033a -r 580279b0298b rsync/stuff/etc/init.d/rsyncd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rsync/stuff/etc/init.d/rsyncd Thu Dec 13 15:21:06 2007 +0100 @@ -0,0 +1,57 @@ +#!/bin/sh +# /etc/init.d/rsyncd: Start, stop and restart Rsync deamon on SliTaz, at boot +# time or with the command line. +# +# To start daemon at boot time, just put the right name 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=Rsyncd +DESC="rsync deamon" +DAEMON=/usr/bin/rsync +OPTIONS=$RSYNCD_OPTIONS +PIDFILE=/var/run/rsyncd.pid + +case "$1" in + start) + if [ -f $PIDFILE ] ; then + echo "$NAME already running." + exit 1 + fi + echo -n "Starting $DESC: $NAME... " + $DAEMON $OPTIONS + status + ;; + stop) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Stopping $DESC: $NAME... " + kill `cat $PIDFILE` + rm $PIDFILE + status + ;; + restart) + if [ ! -f $PIDFILE ] ; then + echo "$NAME is not running." + exit 1 + fi + echo -n "Restarting $DESC: $NAME... " + kill `cat $PIDFILE` + rm $PIDFILE + sleep 2 + $DAEMON $OPTIONS + status + ;; + *) + echo "" + echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]" + echo "" + exit 1 + ;; +esac + +exit 0 diff -r 2074fdf6033a -r 580279b0298b rsync/stuff/etc/rsyncd.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rsync/stuff/etc/rsyncd.conf Thu Dec 13 15:21:06 2007 +0100 @@ -0,0 +1,18 @@ +# /etc/rsyncd.conf: Rsync deamon configuration file. +# + +max connections = 2 +use chroot = yes +#motd file = /etc/rsyncd.motd +pid file = /var/run/rsyncd.pid + +# Deny/allow hosts by IP. +# +#hosts allow = 192.168.1.100/255.255.0.0 +#hosts deny = * + +[web-server] + path = /var/www + comment = WWW rsync module + exclude = cgi-bin/ + diff -r 2074fdf6033a -r 580279b0298b zlib/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zlib/receipt Thu Dec 13 15:21:06 2007 +0100 @@ -0,0 +1,26 @@ +# SliTaz package receipt. + +PACKAGE="zlib" +VERSION="1.2.3" +CATEGORY="base-apps" +SHORT_DESC="Compression library." +MAINTAINER="pankso@slitaz.org" +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WEB_SITE="http://www.zlib.net/" +WGET_URL="http://www.gzip.org/zlib/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $PACKAGE-$VERSION + ./configure --shared --prefix=/usr + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $PACKAGE-$VERSION/libz.so* $fs/usr/lib + strip -s $fs/usr/lib/* +}