
Receipt for package "zerobin"
# SliTaz package receipt. PACKAGE="zerobin" GITHASH="8cae64d6eab99fb0d31868df77846285c0958ed0" # 6 feb 2014 VERSION="${GITHASH:0:7}" CATEGORY="network" SHORT_DESC="Online pastebin where the server has zero knowledge of pasted data." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="zlib/libpng" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="https://sebsauvage.net/wiki/doku.php?id=php:zerobin" WGET_URL="https://github.com/sebsauvage/ZeroBin/archive/$VERSION.tar.gz" HOST_ARCH="any" DEPENDS="php" SUGGESTED="php-gd" # What is the latest version available today? current_version() { wget -O - https://github.com/sebsauvage/ZeroBin/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { patch -p0 < $stuff/zerobin.u } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/zerobin mkdir -p $fs/var/lib/zerobin/data $fs/var/lib/zerobin/tmp cp -a $src/* $fs/usr/share/zerobin cp $stuff/purge.sh $fs/var/lib/zerobin/data ln -s /var/lib/zerobin/data $fs/usr/share/zerobin/data ln -s /var/lib/zerobin/tmp $fs/usr/share/zerobin/tmp chown -R www.www $fs/usr/share/zerobin $fs/var/lib/zerobin/* } # Post and pre install commands post_install() { # Configure lighttpd server if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then if ! grep -q /usr/share/zerobin/ "$1/etc/lighttpd/lighttpd.conf"; then sed -e 's|.*"/examples/" => "/usr/share/examples/",| "/examples/" => "/usr/share/examples/",\n "/paste/" => "/usr/share/zerobin/",|g' -i "$1/etc/lighttpd/lighttpd.conf" if [ -z "$1" ]; then # Start Web server. /etc/init.d/lighttpd stop /etc/init.d/lighttpd start fi fi fi # Configure apache server if [ -f "$1/etc/apache/httpd.conf" ]; then sed -i 's/lighttpd/apache/' "$1/etc/rcS.conf" if [ ! -f "$1/etc/apache/conf.d/zerobin" ]; then cat > "$1/etc/apache/conf.d/zerobin" <<EOT <IfModule mod_alias.c> Alias /paste /usr/share/zerobin/ </IfModule> <DirectoryMatch /usr/share/zerobin/> php_value upload_max_filesize 2147483647 DirectoryIndex index.php AllowOverride None Order allow,deny Allow from all </DirectoryMatch> EOT if [ -z "$1" ]; then # Start Web server. /etc/init.d/apache restart fi fi fi }
6093 packages and 258600 files in current database (Wed Apr 23 16:49:15 2025)