# Description file for tinycore extension ($ extbuild sample.desc) # Source PACKAGE="privoxy" #RENAME_TO="" SEP="-" VERSION="3.0.19-stable" STYPE="http" MIRROR="downloads.sourceforge.net/project/ijbswa/Sources/3.0.19%20%28stable%29" PKG_EXT=".tar.gz" # Dependencies, Build flags, dev auto-added BUILD_DEPS="autoconf coreutils pcre ncurses" RUN_DEPS="pcre ncurses" FLAGS="--enable-graceful-termination --enable-compression --with-user=tc --with-group=staff" CONFIGURE_CMD="autoheader ; autoconf ; ./configure --help ; ./configure $BASE_FLAGS $FLAGS" #DBG_PKG=1 #OVERWRITE_LOCAL=1 #NO_DESTDIR=1 #NO_PERL=1 #NO_AUTOTOOLS=1 #NO_OWN_MOD=1 #UPX_COMPRESS=1 # Packaging DEV_MASK="-name *.h -o -name *.c -o -name *.la -o -name *.a -o -name *.m4 -o -name *.pc -o -name *.rh" LOCALE_MASK="-name locale -type d" DOC_MASK="( -name man -o -name manual -o -name doc -o -name info ) -a -type d" CONF_MASK="-name *.conf" CONF_MAND_MASK="" # Info DESCRIPTION="privoxy - Non-caching web-proxy for enhancing privacy" AUTHORS="Various" MAINTAINER="gutmensch" HOMEPAGE="http://www.privoxy.org" LICENSE="GPLv2" TAGS="privoxy web proxy tor privacy" COMMENTS="By default configured to connect to tor via socks. Steps: 1. Execute from bootlocal.sh or ControlPanel => Services: /usr/local/etc/init.d/tor start /usr/local/etc/init.d/privoxy start 2. Point your browser to the proxy: 127.0.0.1:8118 3. Surf to https://check.torproject.org More configuration at /usr/local/etc/privoxy/." CHANGE="__TODAY__ " ##### changelog, dont modify! is done by script! ##### #CHANGELOG[0]="2012/05/27 Initial version 3.0.19" ############### end of changelog ##################### configure_special_source () { true # dummy_file filename [ $? -eq 0 ] && success || fail } work_special_build () { rm -rf "${TCB_BLDDIR}/${PACKAGE}/var/log/privoxy" rm -rf ${TCB_BLDDIR}/${PACKAGE}/usr/local/etc/privoxy mkdir -p "${TCB_BLDDIR}/${PACKAGE}/usr/local/share/privoxy" cd ${TCB_BLDDIR}/../privoxy_etc_skel/ ; tar czf "${TCB_BLDDIR}/${PACKAGE}/usr/local/share/privoxy/conf.tgz" * 2>/dev/null ; cd - &>/dev/null mkdir -p "${TCB_BLDDIR}/${PACKAGE}/usr/local/etc/init.d" cp "${TCB_BLDDIR}/../privoxy.init.d" "${TCB_BLDDIR}/${PACKAGE}/usr/local/etc/init.d/privoxy" create_start_script $EXTENSION true # to_new_extension "-name file1.txt -o -name file2.bin" new_ext "dep1 dep2" # create_start_script $EXTENSION # echo "my command" >> ${SS1} # create_wbar_icon $EXTENSION $TMPICONPATH $EXECUTE $WBARNAME # create_initd_script $PACKAGE $DAEMONPATH $PIDFILE $OPTIONS cat <> ${SS1} TCUSER="\$(cat /etc/sysconfig/tcuser)" mkdir -p /var/run/privoxy /var/log/privoxy 2>/dev/null chown -R \$TCUSER /var/run/privoxy /var/log/privoxy 2>/dev/null chmod go-rwx /var/run/privoxy /var/log/privoxy if [ ! -d /usr/local/etc/privoxy ];then mkdir -p /usr/local/etc/privoxy tar xzf /usr/local/share/privoxy/conf.tgz -C /usr/local/etc/privoxy/ chown -R \$TCUSER /usr/local/etc/privoxy chmod -R go-rwx /usr/local/etc/privoxy fi EOF [ $? -eq 0 ] && success || fail }