wok-next rev 21021
Combine slitaz-dev-tools
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 03:56:00 2018 +0200 (2018-11-03) |
parents | d5aab818505e |
children | ad449ad4a1a5 |
files | mirror-tools/receipt qemu-box/receipt slitaz-dev-tools/receipt slitaz-mercurial-style/receipt tazdev/receipt tazwikiss/receipt yaff/receipt |
line diff
1.1 --- a/mirror-tools/receipt Fri Nov 02 14:15:08 2018 +0200 1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 1.3 @@ -1,24 +0,0 @@ 1.4 -# SliTaz package receipt. 1.5 - 1.6 -PACKAGE="mirror-tools" 1.7 -VERSION="306" 1.8 -CATEGORY="misc" 1.9 -SHORT_DESC="Mirrors toolset" 1.10 -MAINTAINER="pascal.bellard@slitaz.org" 1.11 -LICENSE="BSD" 1.12 -WEB_SITE="http://www.slitaz.org/" 1.13 -REPOLOGY="-" 1.14 - 1.15 -TARBALL="slitaz-dev-tools-$VERSION.tar.bz2" 1.16 -WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" 1.17 - 1.18 -SIBLINGS="qemu-box slitaz-dev-tools slitaz-mercurial-style tazchroot tazdev \ 1.19 -tazwikiss yaff" 1.20 - 1.21 -genpkg_rules() { 1.22 - cp -a $src/$PACKAGE/rootfs/* $fs 1.23 - mkdir -p $fs/var/www 1.24 - cp -a $src/$PACKAGE/slitaz $fs/var/www 1.25 - chown -R 80.80 $fs/var/www 1.26 - DEPENDS="rrdtool rgzip" 1.27 -}
2.1 --- a/qemu-box/receipt Fri Nov 02 14:15:08 2018 +0200 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,28 +0,0 @@ 2.4 -# SliTaz package receipt v2. 2.5 - 2.6 -PACKAGE="qemu-box" 2.7 -VERSION="306" 2.8 -CATEGORY="development" 2.9 -SHORT_DESC="SliTaz Qemu frontend" 2.10 -MAINTAINER="devel@slitaz.org" 2.11 -LICENSE="BSD" 2.12 -WEB_SITE="http://www.slitaz.org/" 2.13 -REPOLOGY="-" 2.14 - 2.15 -TARBALL="slitaz-dev-tools-$VERSION.tar.bz2" 2.16 -WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" 2.17 - 2.18 -SIBLINGS="mirror-tools slitaz-dev-tools slitaz-mercurial-style tazchroot \ 2.19 -tazdev tazwikiss yaff" 2.20 - 2.21 -compile_rules() { 2.22 - cd $src/qemu-box 2.23 - make DESTDIR=$install install 2.24 -} 2.25 - 2.26 -genpkg_rules() { 2.27 - mkdir -p $fs 2.28 - cp -a $install/* $fs 2.29 - chown -R root.root $fs 2.30 - DEPENDS="qemu-light" 2.31 -}
3.1 --- a/slitaz-dev-tools/receipt Fri Nov 02 14:15:08 2018 +0200 3.2 +++ b/slitaz-dev-tools/receipt Sat Nov 03 03:56:00 2018 +0200 3.3 @@ -1,15 +1,188 @@ 3.4 -# SliTaz package receipt 3.5 +# SliTaz package receipt v2. 3.6 3.7 PACKAGE="slitaz-dev-tools" 3.8 -VERSION="266" 3.9 +VERSION="306" 3.10 CATEGORY="meta" 3.11 -SHORT_DESC="SliTaz developers tools meta package" 3.12 +SHORT_DESC="SliTaz developers tools" 3.13 MAINTAINER="devel@slitaz.org" 3.14 -LICENSE="GPL2" 3.15 +LICENSE="GPL2 GPL3 BSD" 3.16 WEB_SITE="http://www.slitaz.org/" 3.17 +HOST_ARCH="any" 3.18 REPOLOGY="-" 3.19 3.20 -SIBLINGS="mirror-tools qemu-box slitaz-mercurial-style slitaz-mercurial-style \ 3.21 -tazchroot tazdev tazwikiss yaff" 3.22 +TARBALL="slitaz-dev-tools-$VERSION.tar.bz2" 3.23 +WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" 3.24 3.25 -DEPENDS="rsync tazdev mercurial" 3.26 +SPLIT="mirror-tools:mt qemu-box:qb slitaz-mercurial-style:sms tazdev:td \ 3.27 +tazwikiss:tw yaff:ya" 3.28 + 3.29 +compile_rules() { 3.30 + case $SET in 3.31 + '') 3.32 + mkdir -p $install 3.33 + ;; 3.34 + mt) 3.35 + mkdir -p $install/var/www/ 3.36 + cp -r mirror-tools/rootfs/* $install 3.37 + cp -r mirror-tools/slitaz $install/var/www/ 3.38 + chown -R 80.80 $install/var/www 3.39 + ;; 3.40 + qb) 3.41 + cd qemu-box 3.42 + make DESTDIR=$install install 3.43 + ;; 3.44 + sms) 3.45 + PYTHON_LIB=python$(. $WOK/python/receipt; echo ${VERSION%.*}) 3.46 + mkdir -p $install/usr/lib/$PYTHON_LIB/site-packages/mercurial 3.47 + cp -a slitaz-mercurial-style/templates \ 3.48 + $install/usr/lib/$PYTHON_LIB/site-packages/mercurial 3.49 + ;; 3.50 + td) 3.51 + install -Dm755 tazdev/tazdev $install/usr/bin/tazdev 3.52 + install -Dm644 tazdev/tazdev.conf $install/etc/slitaz/tazdev.conf 3.53 + ;; 3.54 + tw) 3.55 + mkdir -p $install 3.56 + cp -r tazwikiss/rootfs/* $install 3.57 + chown -R 80.80 $install/var/www/ 3.58 + 3.59 + # escape '?' 3.60 + sed -i 's|\?|\\?|' $install/usr/share/applications/tazcalc.desktop 3.61 + ;; 3.62 + ya) 3.63 + install -Dm755 baba-scripts/yaff $install/usr/bin/yaff 3.64 + install -Dm644 baba-scripts/mozicon24.png $install/usr/share/icons/hicolor/24x24/apps/mozicon24.png 3.65 + install -Dm644 baba-scripts/yaff.png $install/usr/share/icons/hicolor/128x128/apps/yaff.png 3.66 + ;; 3.67 + esac 3.68 +} 3.69 + 3.70 +genpkg_rules() { 3.71 + case $PACKAGE in 3.72 + slitaz-dev-tools) 3.73 + DEPENDS="rsync tazdev mercurial" 3.74 + CAT="meta|meta package" 3.75 + LICENSE="GPL2" 3.76 + ;; 3.77 + mirror-tools) 3.78 + copy @std include/ 3.79 + DEPENDS="rrdtool rgzip" 3.80 + CAT="misc|mirrors toolset" 3.81 + LICENSE="BSD" 3.82 + ;; 3.83 + qemu-box) 3.84 + copy @std 3.85 + DEPENDS="qemu-light" 3.86 + CAT="development|Qemu frontend" 3.87 + LICENSE="BSD" 3.88 + ;; 3.89 + slitaz-mercurial-style) 3.90 + copy @std 3.91 + DEPENDS="mercurial" 3.92 + CAT="misc|template for Mercurial Web repos" 3.93 + LICENSE="GPL3" 3.94 + ;; 3.95 + tazdev) 3.96 + copy @std 3.97 + DEPENDS="rsync" 3.98 + CAT="development|developers tools" 3.99 + LICENSE="BSD" 3.100 + ;; 3.101 + tazwikiss) 3.102 + copy @std 3.103 + DEPENDS="busybox slitaz-base-files" 3.104 + CAT="office|Tiny SliTaz Wiki" 3.105 + LICENSE="BSD" 3.106 + CONFIG_FILES="/var/www/wiki/config.sh /var/www/wiki/config-de.sh \ 3.107 + /var/www/wiki/config-fr.sh" 3.108 + ;; 3.109 + yaff) 3.110 + copy @std *.png # 24x24 & 128x128 icons only 3.111 + DEPENDS="gtkdialog" 3.112 + CAT="utilities|Mozilla Firefox multi-launcher" 3.113 + LICENSE="BSD" 3.114 + ;; 3.115 + esac 3.116 +} 3.117 + 3.118 +post_install_tazwikiss() { 3.119 + server="busybox" 3.120 + 3.121 + # Configure lighttpd server 3.122 + if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 3.123 + server="lighttpd" 3.124 + if ! grep -q '"/wiki/"' "$1/etc/lighttpd/lighttpd.conf"; then 3.125 + sed -e 's|# Fast CGI|$HTTP["url"] =~ "/wiki/" {\ 3.126 + cgi.assign = (\ 3.127 + ".sh" => "/bin/sh"\ 3.128 + )\ 3.129 + index-file.names = ( "index.sh" )\ 3.130 + }\n\n&|' -i "$1/etc/lighttpd/lighttpd.conf" 3.131 + if [ -z "$1" ]; then 3.132 + echo 3.133 + # Start Web server. 3.134 + /etc/init.d/lighttpd stop 3.135 + /etc/init.d/lighttpd start 3.136 + fi 3.137 + fi 3.138 + fi 3.139 + 3.140 + # Configure apache server 3.141 + if [ -f "$1/etc/apache/httpd.conf" ]; then 3.142 + server="apache" 3.143 + if [ ! -f "$1/etc/apache/conf.d/tazwikiss" ]; then 3.144 + cat > "$1/etc/apache/conf.d/tazwikiss" <<EOT 3.145 +<DirectoryMatch /var/www/wiki/> 3.146 + Options +ExecCGI 3.147 + AddHandler cgi-script .sh 3.148 + DirectoryIndex index.sh 3.149 + AllowOverride None 3.150 + Order allow,deny 3.151 + Allow from all 3.152 +</DirectoryMatch> 3.153 +EOT 3.154 + if [ -z "$1" ]; then 3.155 + echo 3.156 + # Start Web server. 3.157 + /etc/init.d/apache stop 3.158 + /etc/init.d/apache start 3.159 + fi 3.160 + fi 3.161 + fi 3.162 + 3.163 + # Configure busybox/httpd server by default 3.164 + if [ "$server" == "busybox" ]; then 3.165 + sed -i 's/lighttpd/httpd/' "$1/etc/rcS.conf" 3.166 + if [ ! -s "$1/etc/httpd.conf" ]; then 3.167 + cat > "$1/etc/httpd.conf" <<EOT 3.168 +H:/var/www 3.169 +A:0.0.0.0/0 3.170 +.xml:text/xml 3.171 +.tgz:application/x-tgz 3.172 +.tar.gz:application/x-tgz 3.173 +.tazpkg:application/x-tazpkg 3.174 +EOT 3.175 + fi 3.176 + while read line; do 3.177 + grep -q "$line" "$1/etc/httpd.conf" && continue 3.178 + echo "$line" >> "$1/etc/httpd.conf" 3.179 + done <<EOT 3.180 +*.sh:/bin/sh 3.181 +EOT 3.182 + grep -q ' httpd ' "$1/etc/rcS.conf" || 3.183 + sed -i 's/ slim"/ httpd slim"/' "$1/etc/rcS.conf" 3.184 + if [ -z "$1" ]; then 3.185 + echo 3.186 + # Start Web server. 3.187 + /etc/init.d/httpd stop 3.188 + /etc/init.d/httpd start 3.189 + fi 3.190 + fi 3.191 + 3.192 + [ -n "$quiet" ] || cat <<EOT 3.193 + 3.194 + .----------------------------------------------. 3.195 + | The default password to edit pages is 'test' | 3.196 + '----------------------------------------------' 3.197 +EOT 3.198 +}
4.1 --- a/slitaz-mercurial-style/receipt Fri Nov 02 14:15:08 2018 +0200 4.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 4.3 @@ -1,23 +0,0 @@ 4.4 -# SliTaz package receipt. 4.5 - 4.6 -PACKAGE="slitaz-mercurial-style" 4.7 -VERSION="306" 4.8 -CATEGORY="misc" 4.9 -SHORT_DESC="SliTaz CSS style and images for Mercurial Web repos" 4.10 -MAINTAINER="devel@slitaz.org" 4.11 -LICENSE="GPL3" 4.12 -WEB_SITE="http://www.slitaz.org/" 4.13 -REPOLOGY="-" 4.14 - 4.15 -TARBALL="slitaz-dev-tools-$VERSION.tar.bz2" 4.16 -WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" 4.17 - 4.18 -SIBLINGS="mirror-tools qemu-box slitaz-dev-tools tazchroot tazdev tazwikiss yaff" 4.19 - 4.20 -genpkg_rules() { 4.21 - PYTHON_LIB=python$(grep ^VERSION= $WOK/python/receipt | sed 's/.*"\(...\).*/\1/') #'MC 4.22 - mkdir -p $fs/usr/lib/$PYTHON_LIB/site-packages/mercurial 4.23 - cp -a $src/$PACKAGE/templates $fs/usr/lib/$PYTHON_LIB/site-packages/mercurial 4.24 - chown -R root.root $fs 4.25 - DEPENDS="mercurial" 4.26 -}
5.1 --- a/tazdev/receipt Fri Nov 02 14:15:08 2018 +0200 5.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 5.3 @@ -1,24 +0,0 @@ 5.4 -# SliTaz package receipt 5.5 - 5.6 -PACKAGE="tazdev" 5.7 -VERSION="306" 5.8 -CATEGORY="development" 5.9 -SHORT_DESC="SliTaz developers tools" 5.10 -MAINTAINER="devel@slitaz.org" 5.11 -LICENSE="BSD" 5.12 -WEB_SITE="http://www.slitaz.org/" 5.13 -REPOLOGY="-" 5.14 - 5.15 -TARBALL="slitaz-dev-tools-$VERSION.tar.bz2" 5.16 -WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" 5.17 - 5.18 -SIBLINGS="mirror-tools qemu-box slitaz-dev-tools slitaz-mercurial-style \ 5.19 -tazchroot tazwikiss yaff" 5.20 - 5.21 -genpkg_rules() { 5.22 - mkdir -p $fs/etc/slitaz $fs/usr/bin 5.23 - cp -a $src/$PACKAGE/tazdev $fs/usr/bin 5.24 - cp -a $src/$PACKAGE/tazdev.conf $fs/etc/slitaz 5.25 - chown -R root.root $fs 5.26 - DEPENDS="rsync" 5.27 -}
6.1 --- a/tazwikiss/receipt Fri Nov 02 14:15:08 2018 +0200 6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 6.3 @@ -1,104 +0,0 @@ 6.4 -# SliTaz package receipt. 6.5 - 6.6 -PACKAGE="tazwikiss" 6.7 -VERSION="306" 6.8 -CATEGORY="office" 6.9 -SHORT_DESC="Tiny SliTaz Wiki" 6.10 -MAINTAINER="pascal.bellard@slitaz.org" 6.11 -LICENSE="BSD" 6.12 -WEB_SITE="http://www.slitaz.org/" 6.13 -REPOLOGY="-" 6.14 - 6.15 -CONFIG_FILES="/var/www/wiki/config.sh /var/www/wiki/config-de.sh \ 6.16 -/var/www/wiki/config-fr.sh" 6.17 - 6.18 -TARBALL="slitaz-dev-tools-$VERSION.tar.bz2" 6.19 -WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" 6.20 - 6.21 -SIBLINGS="mirror-tools qemu-box slitaz-dev-tools slitaz-mercurial-style \ 6.22 -tazchroot tazdev yaff" 6.23 - 6.24 -compile_rules() { 6.25 - mkdir -p $install 6.26 - cp -a $src/$PACKAGE/rootfs/* $install 6.27 -} 6.28 - 6.29 -genpkg_rules() { 6.30 - cp -a $install/* $fs 6.31 - chown -R 80.80 $fs/var/www 6.32 - DEPENDS="busybox slitaz-base-files" 6.33 -} 6.34 - 6.35 -post_install() { 6.36 - server=busybox 6.37 - # Configure lighttpd server 6.38 - if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then 6.39 - server=lighttpd 6.40 - if ! grep -q '"/wiki/"' "$1/etc/lighttpd/lighttpd.conf"; then 6.41 - sed -e 's|# Fast CGI|$HTTP["url"] =~ "/wiki/" {\ 6.42 - cgi.assign = (\ 6.43 - ".sh" => "/bin/sh"\ 6.44 - )\ 6.45 - index-file.names = ( "index.sh" )\ 6.46 - }\n\n&|' -i "$1/etc/lighttpd/lighttpd.conf" 6.47 - if [ -z "$1" ]; then 6.48 - # Start Web server. 6.49 - /etc/init.d/lighttpd stop 6.50 - /etc/init.d/lighttpd start 6.51 - fi 6.52 - fi 6.53 - fi 6.54 - # Configure apache server 6.55 - if [ -f "$1/etc/apache/httpd.conf" ]; then 6.56 - server=apache 6.57 - if [ ! -f "$1/etc/apache/conf.d/tazwikiss" ]; then 6.58 - cat > "$1/etc/apache/conf.d/tazwikiss" <<EOT 6.59 -<DirectoryMatch /var/www/wiki/> 6.60 - Options +ExecCGI 6.61 - AddHandler cgi-script .sh 6.62 - DirectoryIndex index.sh 6.63 - AllowOverride None 6.64 - Order allow,deny 6.65 - Allow from all 6.66 -</DirectoryMatch> 6.67 -EOT 6.68 - if [ -z "$1" ]; then 6.69 - echo 6.70 - # Start Web server. 6.71 - /etc/init.d/apache stop 6.72 - /etc/init.d/apache start 6.73 - fi 6.74 - fi 6.75 - fi 6.76 - # Configure busybox/httpd server by default 6.77 - if [ "$server" == "busybox" ]; then 6.78 - sed -i 's/lighttpd/httpd/' "$1/etc/rcS.conf" 6.79 - if [ ! -s "$1/etc/httpd.conf" ]; then 6.80 - cat > "$1/etc/httpd.conf" <<EOT 6.81 -H:/var/www 6.82 -A:0.0.0.0/0 6.83 -.xml:text/xml 6.84 -.tgz:application/x-tgz 6.85 -.tar.gz:application/x-tgz 6.86 -.tazpkg:application/x-tazpkg 6.87 -EOT 6.88 - fi 6.89 - while read line; do 6.90 - grep -q "$line" "$1/etc/httpd.conf" && continue 6.91 - echo "$line" >> "$1/etc/httpd.conf" 6.92 - done <<EOT 6.93 -*.sh:/bin/sh 6.94 -EOT 6.95 - grep -q ' httpd ' "$1/etc/rcS.conf" || 6.96 - sed -i 's/ slim"/ httpd slim"/' "$1/etc/rcS.conf" 6.97 - if [ -z "$1" ]; then 6.98 - echo 6.99 - # Start Web server. 6.100 - /etc/init.d/httpd stop 6.101 - /etc/init.d/httpd start 6.102 - fi 6.103 - fi 6.104 - 6.105 - [ -n "$quiet" ] && return 6.106 - echo -e "The default password to edit pages is 'test'\n" 6.107 -}
7.1 --- a/yaff/receipt Fri Nov 02 14:15:08 2018 +0200 7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 7.3 @@ -1,25 +0,0 @@ 7.4 -# SliTaz package receipt 7.5 - 7.6 -PACKAGE="yaff" 7.7 -VERSION="306" 7.8 -CATEGORY="utilities" 7.9 -SHORT_DESC="Mozilla Firefox multi-launcher" 7.10 -MAINTAINER="devel@slitaz.org" 7.11 -LICENSE="BSD" 7.12 -WEB_SITE="http://www.slitaz.org/" 7.13 -REPOLOGY="-" 7.14 - 7.15 -TARBALL="slitaz-dev-tools-$VERSION.tar.bz2" 7.16 -WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" 7.17 - 7.18 -SIBLINGS="mirror-tools qemu-box slitaz-dev-tools slitaz-mercurial-style \ 7.19 -tazchroot tazdev tazwikiss" 7.20 - 7.21 -genpkg_rules() { 7.22 - mkdir -p $fs/usr/share/pixmaps $fs/usr/bin 7.23 - cp -a $src/baba-scripts/yaff $fs/usr/bin 7.24 - cp -a $src/baba-scripts/mozicon24.png $src/baba-scripts/yaff.png \ 7.25 - $fs/usr/share/pixmaps 7.26 - chown -R root.root $fs 7.27 - DEPENDS="gtkdialog" 7.28 -}