#!/bin/sh echo "Don't forget to update this script with the change-log! Press ENTER to start..." read NAME="inadyn" VERSION="1.98.0" SOURCE="ftp://ftp.vmlinux.org/pub/People/jocke/inadyn/inadyn-$VERSION.tar.bz2" DATE=`date '+%Y/%m/%d'` SCRIPT_NAME=$(basename $0) cp $0 /tmp/ echo "Downloading essential packages..." tce-load -wi compiletc squashfs-tools-4.x cd /tmp/ wget $SOURCE sudo rm -rf $NAME-$VERSION 2>/dev/null sudo rm /tmp/$NAME.tcz /tmp/$NAME.tcz.list /tmp/$NAME.tcz.md5.txt /tmp/$NAME.tcz.dep 2>/dev/null sudo rm -rf /tmp/$NAME 2>/dev/null sudo rm /tmp/$NAME-doc.tcz /tmp/$NAME-doc.tcz.list /tmp/$NAME-doc.tcz.md5.txt /tmp/$NAME-doc.tcz.dep 2>/dev/null sudo rm -rf /tmp/$NAME-doc 2>/dev/null tar xvf $NAME-$VERSION.tar.bz2 cd $NAME-$VERSION echo "Press ENTER to continue... " read make -j3 echo " Starting make install to: /tmp/$NAME" sudo make DESTDIR=/tmp/$NAME install cd /tmp/$NAME sudo find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null sudo find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null mkdir -p /tmp/$NAME-doc/usr/local/share cd /tmp/$NAME/usr/local/share sudo mv man /tmp/$NAME-doc/usr/local/share/ sudo mv doc /tmp/$NAME-doc/usr/local/share/ cd /tmp/$NAME sudo rm -rf etc sudo rm -rf usr/local/share echo "Creating package..." cd /tmp/ sudo mksquashfs $NAME $NAME.tcz sudo md5sum $NAME.tcz > $NAME.tcz.md5.txt cd $NAME sudo find usr -not -type d > ../$NAME.tcz.list cd /tmp/ SIZE="`du -k $NAME.tcz|cut -f1`k" sudo echo "Title: $NAME.tcz Description: inadyn Version: $VERSION Author: Joachim Nilsson Original-site: http://freshmeat.net/projects/inadyn Copying-policy: GPLv2 Size: $SIZE Extension_by: andriscom Comments: inadyn by Joachim Nilsson is a fork of the original INADYN implementation from Narcis Ilisei. Most of the fixes and additions from the new \"upstream\" by Christoph Brill have been included. The original INADYN is a free DynDNS client. It gives the possibility to have your own fixed hostname registered on the internet, although your IP might be changing. It checks periodically whether the IP address stored by the DNS server is the real current IP address of the machine that is running INADYN. Supports the following services: dyndns.org (in all three flavors: dynamic, static, custom) freedns.afraid.org zoneedit.com no-ip.com sitelutions.com dynsip.org dnsomatic.com dns.he.net various services similar to dyndns (e.g. dyndns.it) - Maintains up multiple aliases of the same IP address. - Runs as a service. - Runs fine behind a router. - Or runs as a console application. - Does not perform unnecessary updates. - Has 'install and forget it feature'. - That is, after install one can completely forget about it. - No maintenance required. To start inadyn daemon on bootup just add it in your /opt/bootlocal.sh or ~/.profile: inadyn -u username -p password -a host.dyndns.org --update_period 1800000 --background ---------------------------------------------------------- This extension is PPI compatible. Source: $SOURCE Change-log: 2009/10/11 First version (1.96.2) by jls_legalize (unsenepopiu at tin dot it) 2010/11/06 Version: 1.97.4 $DATE Version: $VERSION Current: $DATE Version: $VERSION " > $NAME.tcz.info echo "Creating doc package..." cd /tmp/ sudo mksquashfs $NAME-doc $NAME-doc.tcz sudo md5sum $NAME-doc.tcz > $NAME-doc.tcz.md5.txt cd $NAME-doc sudo find usr -not -type d > ../$NAME-doc.tcz.list cd /tmp/ SIZE="`du -k $NAME-doc.tcz|cut -f1`k" sudo echo "Title: $NAME-doc.tcz Description: inadyn man pages Version: $VERSION Author: Joachim Nilsson Original-site: http://freshmeat.net/projects/inadyn Copying-policy: GPLv2 Size: $SIZE Extension_by: andriscom Comments: Manual entry files for inadyn $VERSION. Source: $SOURCE Change-log: 2010/11/06 Version: 1.97.4 $DATE Version: $VERSION Current: $DATE Version: $VERSION " > $NAME-doc.tcz.info sudo echo "inadyn.tcz " > $NAME-doc.tcz.dep cd /tmp/ mkdir packages 2>/dev/null sudo rm packages/$NAME.tar.gz 2>/dev/null tar zcf packages/$NAME.tar.gz $NAME.tcz* $NAME-dev.tcz* $NAME-doc.tcz* $NAME-locale.tcz* $SCRIPT_NAME echo " Run bcrypt on /tmp/packages/*.tar.gz... give password: tinycore" echo "Run the extension_audit.sh and reboot a clean system to try the packages!" echo "Send it to: tcesubmit@gmail.com"