wok-6.x annotate tazbug-website/receipt @ rev 13817
tazbug-website: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 06 17:58:35 2013 +0100 (2013-01-06) |
parents | ff80d60180b6 |
children | 8198d0afa28b |
rev | line source |
---|---|
xfred222@13693 | 1 # SliTaz package receipt. |
xfred222@13693 | 2 |
xfred222@13693 | 3 PACKAGE="tazbug-website" |
border@13808 | 4 VERSION="1.1" |
xfred222@13693 | 5 CATEGORY="misc" |
xfred222@13693 | 6 SHORT_DESC="SliTaz Bug Tracker website" |
xfred222@13693 | 7 MAINTAINER="fredericguilbault@live.ca" |
xfred222@13693 | 8 WEB_SITE="http://bugs.slitaz.org" |
xfred222@13693 | 9 TARBALL="tazbug-$VERSION.tar.gz" |
xfred222@13693 | 10 WGET_URL="http://mirror.slitaz.org/sources/tazbug/$TARBALL" |
xfred222@13693 | 11 |
xfred222@13693 | 12 DEPENDS="busybox gettext-base slitaz-base-files" |
xfred222@13693 | 13 BUILD_DEPENDS="gettext" |
xfred222@13693 | 14 |
xfred222@13693 | 15 |
xfred222@13693 | 16 # Rules to gen a SliTaz package suitable for Tazpkg. |
xfred222@13693 | 17 genpkg_rules() |
xfred222@13693 | 18 { |
border@13808 | 19 #create path |
border@13808 | 20 mkdir -pm0755 $fs/var/www/bugs |
border@13808 | 21 mkdir -pm0755 $fs/var/lib/slitaz/auth/ |
pascal@13817 | 22 mkdir -pm0700 $fs/var/lib/slitaz/people/ |
pascal@13817 | 23 |
pascal@13817 | 24 #copy to package |
pascal@13817 | 25 touch $fs/var/lib/slitaz/auth/people |
pascal@13817 | 26 cp -a $src/web/* $fs/var/www/bugs/ |
pascal@13817 | 27 mv $src/web/bugs.conf $fs/etc/slitaz/bugs.conf |
xfred222@13704 | 28 |
border@13808 | 29 #set prem & owner |
xfred222@13693 | 30 chown -R 80.80 $fs/var/www/bugs |
border@13808 | 31 chown -R 80.80 $fs/var/lib/slitaz/people/ |
border@13808 | 32 chmod 0700 $fs/var/lib/slitaz/auth/people |
xfred222@13704 | 33 chown -R 80.80 $fs/var/lib/slitaz/auth/people |
xfred222@13695 | 34 } |