Revision 06652f19
Von Holger Lindemann vor fast 14 Jahren hinzugefügt
DEBIAN/mk_erp_deb.sh | ||
---|---|---|
4 | 4 |
NR="0" |
5 | 5 |
|
6 | 6 |
#hier wurde das Git-Paket entpakt: |
7 |
SRC=/tmp/deb_test/unstable
|
|
7 |
SRC=/tmp/lx-office-erp
|
|
8 | 8 |
|
9 | 9 |
#hier wird das Debian-Paket gebaut: |
10 |
DST=/tmp/deb_test/package
|
|
10 |
DST=/tmp/package |
|
11 | 11 |
|
12 | 12 |
|
13 | 13 |
################################################ |
... | ... | |
17 | 17 |
VER=`cat VERSION` |
18 | 18 |
DEST=$DST/lx-office-erp_$VER-$NR-all |
19 | 19 |
|
20 |
FILES=' |
|
21 |
usr/lib/lx-office-erp/ |
|
22 |
usr/share/lx-office-erp/ |
|
23 |
usr/share/doc/lx-office-erp/ |
|
24 |
var/lib/lx-office-erp/spool/ |
|
25 |
var/lib/lx-office-erp/users/ |
|
26 |
var/lib/lx-office-erp/css/ |
|
27 |
var/lib/lx-office-erp/xslt/ |
|
28 |
var/lib/lx-office-erp/templates/ |
|
29 |
var/lib/lx-office-erp/webdav/lieferantenbestellungen/ |
|
30 |
var/lib/lx-office-erp/webdav/anfragen/ |
|
31 |
var/lib/lx-office-erp/webdav/gutschriften/ |
|
32 |
var/lib/lx-office-erp/webdav/einkaufsrechnungen/ |
|
33 |
var/lib/lx-office-erp/webdav/rechnungen/ |
|
34 |
var/lib/lx-office-erp/webdav/bestellungen/ |
|
35 |
var/lib/lx-office-erp/webdav/angebote/ |
|
36 |
usr/lib/lx-office-erp/ |
|
37 |
usr/share/lx-office-erp/ |
|
38 |
usr/share/doc/lx-office-erp/ |
|
39 |
usr/share/man/man1/:lx-office-erp.1.gz |
|
40 |
etc/lx-office-erp/:lx-office-erp.cherokee.handler |
|
41 |
etc/lx-office-erp/:lx-office-erp.apache2.conf |
|
42 |
etc/lx-office-erp/:lx-office-erp.cherokee |
|
43 |
usr/bin/:lx-office-erp |
|
44 |
' |
|
45 |
|
|
46 |
for filespec in $FILES; do |
|
47 |
set - `echo $filespec | sed -e 's/:/ /g'` |
|
48 |
dir=$1 |
|
49 |
file=$2 |
|
50 |
mkdir -p $SRC/DEBIAN/$dir |
|
51 |
if [ -f $SRC/DEBIAN/files/$file ]; then |
|
52 |
cp $SRC/DEBIAN/files/$file $SRC/DEBIAN/$dir/$file |
|
53 |
else |
|
54 |
echo '1' > $SRC/DEBIAN/$dir/.dummy |
|
55 |
fi |
|
56 |
done |
|
57 |
|
|
58 |
SYMLINKS=' |
|
59 |
css:/var/lib/lx-office-erp/css |
|
60 |
doc:/usr/share/doc/lx-office-erp/ |
|
61 |
image:/usr/share/lx-office-erp |
|
62 |
spool:/var/lib/lx-office-erp/spool |
|
63 |
templates:/var/lib/lx-office-erp/templates |
|
64 |
users:/var/lib/lx-office-erp/users/ |
|
65 |
webdav:/var/lib/lx-office-erp/webdav |
|
66 |
xslt:/var/lib/lx-office-erp/xslt |
|
67 |
' |
|
68 |
|
|
69 |
for symspec in $SYMLINKS; do |
|
70 |
set - `echo $symspec | sed -e 's/:/ /g'` |
|
71 |
src=$1 |
|
72 |
tar=$2 |
|
73 |
|
|
74 |
ln -s $tar $SRC/DEBIAN/usr/lib/lx-office-erp/$src |
|
75 |
done |
|
76 |
#fertig |
|
77 | 20 |
|
78 | 21 |
mkdir -p $DEST |
79 | 22 |
cd $DEST |
80 | 23 |
|
81 | 24 |
#Struktur anlegen: |
82 |
cp -a $SRC/DEBIAN/* .
|
|
83 |
rm ./mk*.sh
|
|
25 |
cp -a $SRC/DEBIAN/DEBIAN .
|
|
26 |
tar xzf $SRC/DEBIAN/struktur.tgz
|
|
84 | 27 |
|
85 | 28 |
#Dateien kopieren: |
86 | 29 |
#aber keine fertigen Konfigurationen, nur *.default |
... | ... | |
97 | 40 |
cp $SRC/VERSION usr/lib/lx-office-erp |
98 | 41 |
cp $SRC/index.html usr/lib/lx-office-erp |
99 | 42 |
cp $SRC/config/lx-erp.conf etc/lx-office-erp/lx-erp.conf.default |
43 |
cp $SRC/config/console.conf.default etc/lx-office-erp/ |
|
100 | 44 |
cp $SRC/config/authentication.pl.default etc/lx-office-erp/ |
101 | 45 |
cp $SRC/menu.ini usr/lib/lx-office-erp/menu.default |
102 | 46 |
cp -a $SRC/css var/lib/lx-office-erp |
Auch abrufbar als: Unified diff
Struktur in Tar-File gepackt
Script zum Paketbau geändert