wok-next annotate slitaz-dev-tools/receipt @ rev 21727
created recipe for vbindiff
author | Hans-G?nter Theisgen |
---|---|
date | Sat Nov 21 14:32:44 2020 +0100 (2020-11-21) |
parents | 418c95dc18df |
children |
rev | line source |
---|---|
al@21021 | 1 # SliTaz package receipt v2. |
pankso@3440 | 2 |
pankso@3440 | 3 PACKAGE="slitaz-dev-tools" |
al@21021 | 4 VERSION="306" |
pankso@8832 | 5 CATEGORY="meta" |
al@21021 | 6 SHORT_DESC="SliTaz developers tools" |
al@21020 | 7 MAINTAINER="devel@slitaz.org" |
al@21021 | 8 LICENSE="GPL2 GPL3 BSD" |
pankso@3440 | 9 WEB_SITE="http://www.slitaz.org/" |
al@21021 | 10 HOST_ARCH="any" |
al@20888 | 11 REPOLOGY="-" |
pankso@3440 | 12 |
al@21021 | 13 TARBALL="slitaz-dev-tools-$VERSION.tar.bz2" |
al@21021 | 14 WGET_URL="http://hg.slitaz.org/slitaz-dev-tools/archive/$VERSION.tar.bz2" |
al@19588 | 15 |
al@21044 | 16 BUILD_DEPENDS="python" |
al@21021 | 17 SPLIT="mirror-tools:mt qemu-box:qb slitaz-mercurial-style:sms tazdev:td \ |
al@21021 | 18 tazwikiss:tw yaff:ya" |
al@21021 | 19 |
al@21021 | 20 compile_rules() { |
al@21021 | 21 case $SET in |
al@21021 | 22 '') |
al@21021 | 23 mkdir -p $install |
al@21021 | 24 ;; |
al@21021 | 25 mt) |
al@21021 | 26 mkdir -p $install/var/www/ |
al@21021 | 27 cp -r mirror-tools/rootfs/* $install |
al@21021 | 28 cp -r mirror-tools/slitaz $install/var/www/ |
al@21021 | 29 chown -R 80.80 $install/var/www |
al@21021 | 30 ;; |
al@21021 | 31 qb) |
al@21021 | 32 cd qemu-box |
al@21021 | 33 make DESTDIR=$install install |
al@21021 | 34 ;; |
al@21021 | 35 sms) |
al@21044 | 36 PYTHON_LIB="$(python2 -c 'import os; print os.path.dirname(os.__file__)')" |
al@21044 | 37 mkdir -p $install$PYTHON_LIB/site-packages/mercurial |
al@21021 | 38 cp -a slitaz-mercurial-style/templates \ |
al@21044 | 39 $install$PYTHON_LIB/site-packages/mercurial |
al@21021 | 40 ;; |
al@21021 | 41 td) |
al@21021 | 42 install -Dm755 tazdev/tazdev $install/usr/bin/tazdev |
al@21021 | 43 install -Dm644 tazdev/tazdev.conf $install/etc/slitaz/tazdev.conf |
al@21021 | 44 ;; |
al@21021 | 45 tw) |
al@21021 | 46 mkdir -p $install |
al@21021 | 47 cp -r tazwikiss/rootfs/* $install |
al@21021 | 48 chown -R 80.80 $install/var/www/ |
al@21021 | 49 |
al@21021 | 50 # escape '?' |
al@21021 | 51 sed -i 's|\?|\\?|' $install/usr/share/applications/tazcalc.desktop |
al@21021 | 52 ;; |
al@21021 | 53 ya) |
al@21021 | 54 install -Dm755 baba-scripts/yaff $install/usr/bin/yaff |
al@21021 | 55 install -Dm644 baba-scripts/mozicon24.png $install/usr/share/icons/hicolor/24x24/apps/mozicon24.png |
al@21021 | 56 install -Dm644 baba-scripts/yaff.png $install/usr/share/icons/hicolor/128x128/apps/yaff.png |
al@21021 | 57 ;; |
al@21021 | 58 esac |
al@21021 | 59 } |
al@21021 | 60 |
al@21021 | 61 genpkg_rules() { |
al@21021 | 62 case $PACKAGE in |
al@21021 | 63 slitaz-dev-tools) |
al@21021 | 64 DEPENDS="rsync tazdev mercurial" |
al@21021 | 65 CAT="meta|meta package" |
al@21021 | 66 LICENSE="GPL2" |
al@21021 | 67 ;; |
al@21021 | 68 mirror-tools) |
al@21021 | 69 copy @std include/ |
al@21021 | 70 DEPENDS="rrdtool rgzip" |
al@21021 | 71 CAT="misc|mirrors toolset" |
al@21021 | 72 LICENSE="BSD" |
al@21021 | 73 ;; |
al@21021 | 74 qemu-box) |
al@21021 | 75 copy @std |
al@21021 | 76 DEPENDS="qemu-light" |
al@21021 | 77 CAT="development|Qemu frontend" |
al@21021 | 78 LICENSE="BSD" |
al@21021 | 79 ;; |
al@21021 | 80 slitaz-mercurial-style) |
al@21021 | 81 copy @std |
al@21021 | 82 DEPENDS="mercurial" |
al@21021 | 83 CAT="misc|template for Mercurial Web repos" |
al@21021 | 84 LICENSE="GPL3" |
al@21021 | 85 ;; |
al@21021 | 86 tazdev) |
al@21021 | 87 copy @std |
al@21021 | 88 DEPENDS="rsync" |
al@21021 | 89 CAT="development|developers tools" |
al@21021 | 90 LICENSE="BSD" |
al@21021 | 91 ;; |
al@21021 | 92 tazwikiss) |
al@21021 | 93 copy @std |
al@21021 | 94 DEPENDS="busybox slitaz-base-files" |
al@21021 | 95 CAT="office|Tiny SliTaz Wiki" |
al@21021 | 96 LICENSE="BSD" |
al@21021 | 97 CONFIG_FILES="/var/www/wiki/config.sh /var/www/wiki/config-de.sh \ |
al@21021 | 98 /var/www/wiki/config-fr.sh" |
al@21021 | 99 ;; |
al@21021 | 100 yaff) |
al@21021 | 101 copy @std *.png # 24x24 & 128x128 icons only |
al@21021 | 102 DEPENDS="gtkdialog" |
al@21021 | 103 CAT="utilities|Mozilla Firefox multi-launcher" |
al@21021 | 104 LICENSE="BSD" |
al@21021 | 105 ;; |
al@21021 | 106 esac |
al@21021 | 107 } |
al@21021 | 108 |
al@21021 | 109 post_install_tazwikiss() { |
al@21021 | 110 server="busybox" |
al@21021 | 111 |
al@21021 | 112 # Configure lighttpd server |
al@21021 | 113 if [ -f "$1/etc/lighttpd/lighttpd.conf" ]; then |
al@21021 | 114 server="lighttpd" |
al@21021 | 115 if ! grep -q '"/wiki/"' "$1/etc/lighttpd/lighttpd.conf"; then |
al@21021 | 116 sed -e 's|# Fast CGI|$HTTP["url"] =~ "/wiki/" {\ |
al@21021 | 117 cgi.assign = (\ |
al@21021 | 118 ".sh" => "/bin/sh"\ |
al@21021 | 119 )\ |
al@21021 | 120 index-file.names = ( "index.sh" )\ |
al@21021 | 121 }\n\n&|' -i "$1/etc/lighttpd/lighttpd.conf" |
al@21021 | 122 if [ -z "$1" ]; then |
al@21021 | 123 echo |
al@21021 | 124 # Start Web server. |
al@21021 | 125 /etc/init.d/lighttpd stop |
al@21021 | 126 /etc/init.d/lighttpd start |
al@21021 | 127 fi |
al@21021 | 128 fi |
al@21021 | 129 fi |
al@21021 | 130 |
al@21021 | 131 # Configure apache server |
al@21021 | 132 if [ -f "$1/etc/apache/httpd.conf" ]; then |
al@21021 | 133 server="apache" |
al@21021 | 134 if [ ! -f "$1/etc/apache/conf.d/tazwikiss" ]; then |
al@21021 | 135 cat > "$1/etc/apache/conf.d/tazwikiss" <<EOT |
al@21021 | 136 <DirectoryMatch /var/www/wiki/> |
al@21021 | 137 Options +ExecCGI |
al@21021 | 138 AddHandler cgi-script .sh |
al@21021 | 139 DirectoryIndex index.sh |
al@21021 | 140 AllowOverride None |
al@21021 | 141 Order allow,deny |
al@21021 | 142 Allow from all |
al@21021 | 143 </DirectoryMatch> |
al@21021 | 144 EOT |
al@21021 | 145 if [ -z "$1" ]; then |
al@21021 | 146 echo |
al@21021 | 147 # Start Web server. |
al@21021 | 148 /etc/init.d/apache stop |
al@21021 | 149 /etc/init.d/apache start |
al@21021 | 150 fi |
al@21021 | 151 fi |
al@21021 | 152 fi |
al@21021 | 153 |
al@21021 | 154 # Configure busybox/httpd server by default |
al@21021 | 155 if [ "$server" == "busybox" ]; then |
al@21021 | 156 sed -i 's/lighttpd/httpd/' "$1/etc/rcS.conf" |
al@21021 | 157 if [ ! -s "$1/etc/httpd.conf" ]; then |
al@21021 | 158 cat > "$1/etc/httpd.conf" <<EOT |
al@21021 | 159 H:/var/www |
al@21021 | 160 A:0.0.0.0/0 |
al@21021 | 161 .xml:text/xml |
al@21021 | 162 .tgz:application/x-tgz |
al@21021 | 163 .tar.gz:application/x-tgz |
al@21021 | 164 .tazpkg:application/x-tazpkg |
al@21021 | 165 EOT |
al@21021 | 166 fi |
al@21021 | 167 while read line; do |
al@21021 | 168 grep -q "$line" "$1/etc/httpd.conf" && continue |
al@21021 | 169 echo "$line" >> "$1/etc/httpd.conf" |
al@21021 | 170 done <<EOT |
al@21021 | 171 *.sh:/bin/sh |
al@21021 | 172 EOT |
al@21021 | 173 grep -q ' httpd ' "$1/etc/rcS.conf" || |
al@21021 | 174 sed -i 's/ slim"/ httpd slim"/' "$1/etc/rcS.conf" |
al@21021 | 175 if [ -z "$1" ]; then |
al@21021 | 176 echo |
al@21021 | 177 # Start Web server. |
al@21021 | 178 /etc/init.d/httpd stop |
al@21021 | 179 /etc/init.d/httpd start |
al@21021 | 180 fi |
al@21021 | 181 fi |
al@21021 | 182 |
al@21021 | 183 [ -n "$quiet" ] || cat <<EOT |
al@21021 | 184 |
al@21021 | 185 .----------------------------------------------. |
al@21021 | 186 | The default password to edit pages is 'test' | |
al@21021 | 187 '----------------------------------------------' |
al@21021 | 188 EOT |
al@21021 | 189 } |