author | zautrix <zautrix> | 2004-07-03 17:07:48 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-07-03 17:07:48 (UTC) |
commit | c5cbe2bcfb6d20d11b7143c561738ce750249c36 (patch) (unidiff) | |
tree | 1fdb93ac51c695f9705e9013bd2d5d49344e428e | |
parent | d6c945f1c48c6b6742751177d07e88dca3f3044d (diff) | |
download | kdepimpi-c5cbe2bcfb6d20d11b7143c561738ce750249c36.zip kdepimpi-c5cbe2bcfb6d20d11b7143c561738ce750249c36.tar.gz kdepimpi-c5cbe2bcfb6d20d11b7143c561738ce750249c36.tar.bz2 |
Updated control files.Makefile for Mail added
-rw-r--r-- | Makefile.EmbeddedMail | 114 | ||||
-rw-r--r-- | kmicrokdelibs.control | 14 | ||||
-rw-r--r-- | kmicromail.control | 14 | ||||
-rw-r--r-- | korganizer-alarm.control | 2 | ||||
-rw-r--r-- | korganizer.control | 8 | ||||
-rwxr-xr-x | mkipks | 272 |
6 files changed, 419 insertions, 5 deletions
diff --git a/Makefile.EmbeddedMail b/Makefile.EmbeddedMail new file mode 100644 index 0000000..eb5fba7 --- a/dev/null +++ b/Makefile.EmbeddedMail | |||
@@ -0,0 +1,114 @@ | |||
1 | DISTPATH = $(shell pwd) | ||
2 | DISTDIR = $(shell basename $(DISTPATH)) | ||
3 | |||
4 | SUBDIRS = libical/src/libical libical/src/libicalss qtcompat microkde \ | ||
5 | libkcal libkdepim kabc kabc/formats/binary kabc/plugins/file kabc/plugins/dir \ | ||
6 | kabc/plugins/opie \ | ||
7 | korganizer kalarmd kaddressbook kmicromail/libetpan kmicromail/libmailwrapper kmicromail | ||
8 | all: tmake | ||
9 | for i in $(SUBDIRS); do pushd $$i; \ | ||
10 | make -f Makefile$(PLATFORM) || exit 1; popd; \ | ||
11 | done | ||
12 | |||
13 | objects: | ||
14 | for i in $(SUBDIRS); do mkdir -p $$i/obj/$(PLATFORM); done | ||
15 | for i in $(SUBDIRS); do mkdir -p $$i/moc/$(PLATFORM); done | ||
16 | mkdir -p libical/lib/$(PLATFORM) | ||
17 | |||
18 | clean: | ||
19 | rm -f libical/lib/$(PLATFORM)/*; | ||
20 | for i in $(SUBDIRS); do pushd $$i; make clean; rm -f *~;\ | ||
21 | rm -f obj/$(PLATFORM)/*; rm -f moc/$(PLATFORM)/*; rm Makefile$(PLATFORM); popd; \ | ||
22 | done | ||
23 | install: | ||
24 | cd bin/kdepim; make install | ||
25 | cp db2file/db2file $(QPEDIR)/bin/db2file | ||
26 | cp korganizer/korganizer.desktop $(QPEDIR)/apps/Pim/korganizer.desktop | ||
27 | cp kmicromail/kmicromail.desktop $(QPEDIR)/apps/Pim/kmicromail.desktop | ||
28 | cp kaddressbook/kaddressbook.desktop $(QPEDIR)/apps/Pim/kaddressbook.desktop | ||
29 | |||
30 | dist: | ||
31 | @echo Dont forget to do "make install" before "make dist" | ||
32 | rm -f *arm.ipk | ||
33 | rm -f *~ | ||
34 | cd ..; tar czf kdepim.src.tar.gz --exclude=obj --exclude=moc kdepim | ||
35 | mkipks kmicrokdelibs.control | ||
36 | mkipks korganizer.control | ||
37 | mkipks kaddressbook.control | ||
38 | mkipks kmicromail.control | ||
39 | mkipks korganizer-alarm.control | ||
40 | |||
41 | tmake: objects qtcompat/Makefile$(PLATFORM) microkde/Makefile$(PLATFORM) \ | ||
42 | libkcal/Makefile$(PLATFORM) \ | ||
43 | libkdepim/Makefile$(PLATFORM) korganizer/Makefile$(PLATFORM) \ | ||
44 | kalarmd/Makefile$(PLATFORM) \ | ||
45 | libical/src/libical/Makefile$(PLATFORM) \ | ||
46 | libical/src/libicalss/Makefile$(PLATFORM) \ | ||
47 | kabc/Makefile$(PLATFORM) \ | ||
48 | kabc/formats/binary/Makefile$(PLATFORM) \ | ||
49 | kabc/plugins/file/Makefile$(PLATFORM) \ | ||
50 | kabc/plugins/dir/Makefile$(PLATFORM) \ | ||
51 | kabc/plugins/ldap/Makefile$(PLATFORM) \ | ||
52 | kabc/plugins/opie/Makefile$(PLATFORM) \ | ||
53 | kaddressbook/Makefile$(PLATFORM) \ | ||
54 | kmicromail/Makefile$(PLATFORM) \ | ||
55 | kmicromail/libetpan/Makefile$(PLATFORM) \ | ||
56 | kmicromail/libmailwrapper/Makefile$(PLATFORM) | ||
57 | |||
58 | |||
59 | |||
60 | qtcompat/Makefile$(PLATFORM): qtcompat/qtcompat.pro | ||
61 | cd qtcompat; tmake "CONFIG+=$(RELEASE_DEBUG)" qtcompat.pro -o Makefile$(PLATFORM) | ||
62 | |||
63 | microkde/Makefile$(PLATFORM): microkde/microkdeE.pro | ||
64 | cd microkde; tmake "CONFIG+=$(RELEASE_DEBUG)" microkdeE.pro -o Makefile$(PLATFORM) | ||
65 | |||
66 | libkcal/Makefile$(PLATFORM): libkcal/libkcalE.pro | ||
67 | cd libkcal; tmake "CONFIG+=$(RELEASE_DEBUG)" libkcalE.pro -o Makefile$(PLATFORM) | ||
68 | |||
69 | |||
70 | libkdepim/Makefile$(PLATFORM): libkdepim/libkdepimE.pro | ||
71 | cd libkdepim; tmake "CONFIG+=$(RELEASE_DEBUG)" libkdepimE.pro -o Makefile$(PLATFORM) | ||
72 | |||
73 | kalarmd/Makefile$(PLATFORM): kalarmd/kalarmdE.pro | ||
74 | cd kalarmd; tmake "CONFIG+=$(RELEASE_DEBUG)" kalarmdE.pro -o Makefile$(PLATFORM) | ||
75 | |||
76 | korganizer/Makefile$(PLATFORM): korganizer/korganizerE.pro | ||
77 | cd korganizer; tmake "CONFIG+=$(RELEASE_DEBUG)" korganizerE.pro -o Makefile$(PLATFORM) | ||
78 | |||
79 | libical/src/libical/Makefile$(PLATFORM): libical/src/libical/libicalE.pro | ||
80 | cd libical/src/libical; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalE.pro -o Makefile$(PLATFORM) | ||
81 | |||
82 | libical/src/libicalss/Makefile$(PLATFORM): libical/src/libicalss/libicalssE.pro | ||
83 | cd libical/src/libicalss; tmake "CONFIG+=$(RELEASE_DEBUG)" libicalssE.pro -o Makefile$(PLATFORM) | ||
84 | |||
85 | kabc/Makefile$(PLATFORM): kabc/kabcE.pro | ||
86 | cd kabc; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcE.pro -o Makefile$(PLATFORM) | ||
87 | |||
88 | kabc/formats/binary/Makefile$(PLATFORM): kabc/formats/binary/kabcformat_binaryE.pro | ||
89 | cd kabc/formats/binary; tmake "CONFIG+=$(RELEASE_DEBUG)" kabcformat_binaryE.pro -o Makefile$(PLATFORM) | ||
90 | |||
91 | kabc/plugins/file/Makefile$(PLATFORM): kabc/plugins/file/kabc_fileE.pro | ||
92 | cd kabc/plugins/file; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_fileE.pro -o Makefile$(PLATFORM) | ||
93 | |||
94 | kabc/plugins/dir/Makefile$(PLATFORM): kabc/plugins/dir/kabc_dirE.pro | ||
95 | cd kabc/plugins/dir; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_dirE.pro -o Makefile$(PLATFORM) | ||
96 | |||
97 | kabc/plugins/ldap/Makefile$(PLATFORM): kabc/plugins/ldap/kabc_ldapE.pro | ||
98 | cd kabc/plugins/ldap; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_ldapE.pro -o Makefile$(PLATFORM) | ||
99 | |||
100 | kabc/plugins/opie/Makefile$(PLATFORM): kabc/plugins/opie/kabc_opieE.pro | ||
101 | cd kabc/plugins/opie; tmake "CONFIG+=$(RELEASE_DEBUG)" kabc_opieE.pro -o Makefile$(PLATFORM) | ||
102 | |||
103 | |||
104 | kaddressbook/Makefile$(PLATFORM): kaddressbook/kaddressbookE.pro | ||
105 | cd kaddressbook; tmake "CONFIG+=$(RELEASE_DEBUG)" kaddressbookE.pro -o Makefile$(PLATFORM) | ||
106 | |||
107 | |||
108 | kmicromail/Makefile$(PLATFORM): kmicromail/kmicromailE.pro | ||
109 | cd kmicromail; tmake "CONFIG+=$(RELEASE_DEBUG)" kmicromailE.pro -o Makefile$(PLATFORM) | ||
110 | kmicromail/libetpan/Makefile$(PLATFORM): kmicromail/libetpan/libetpanE.pro | ||
111 | cd kmicromail/libetpan; tmake "CONFIG+=$(RELEASE_DEBUG)" libetpanE.pro -o Makefile$(PLATFORM) | ||
112 | kmicromail/libmailwrapper/Makefile$(PLATFORM): kmicromail/libmailwrapper/libmailwrapperE.pro | ||
113 | cd kmicromail/libmailwrapper; tmake "CONFIG+=$(RELEASE_DEBUG)" libmailwrapperE.pro -o Makefile$(PLATFORM) | ||
114 | |||
diff --git a/kmicrokdelibs.control b/kmicrokdelibs.control new file mode 100644 index 0000000..dc7cb55 --- a/dev/null +++ b/kmicrokdelibs.control | |||
@@ -0,0 +1,14 @@ | |||
1 | Files: bin/db2file lib/libmicro* | ||
2 | |||
3 | Priority: optional | ||
4 | Section: qpe/pim | ||
5 | Maintainer: Lutz Rogowski <lutz@pi-sync.net> | ||
6 | Architecture: arm | ||
7 | Version: 1.9.2 | ||
8 | License: GPL | ||
9 | Depends: | ||
10 | Description: KOrganizer/Pi and Kaddressbook/Pi | ||
11 | The embedded version of KOrganizer/Platform-independend, | ||
12 | the KDE calendar and scheduling program | ||
13 | optimized for 640x480 and 320x240 resolution | ||
14 | on Zaurus PDA | ||
diff --git a/kmicromail.control b/kmicromail.control new file mode 100644 index 0000000..ede8c7d --- a/dev/null +++ b/kmicromail.control | |||
@@ -0,0 +1,14 @@ | |||
1 | Files: bin/kmpi apps/Pim/kmicromail.desktop pics/kdepim/kmicromail/* lib/libssl* lib/libcrypto.* lib/libkmicro* | ||
2 | |||
3 | Priority: optional | ||
4 | Section: qpe/pim | ||
5 | Maintainer: Lutz Rogowski <lutz@pi-sync.net> | ||
6 | Architecture: arm | ||
7 | Version: 1.9.2 | ||
8 | License: GPL | ||
9 | Depends: lib/libmicrokde.so | ||
10 | Description: KOrganizer/Pi and Kaddressbook/Pi | ||
11 | The embedded version of KOrganizer/Platform-independend, | ||
12 | the KDE calendar and scheduling program | ||
13 | optimized for 640x480 and 320x240 resolution | ||
14 | on Zaurus PDA | ||
diff --git a/korganizer-alarm.control b/korganizer-alarm.control index 60ced20..9b30e15 100644 --- a/korganizer-alarm.control +++ b/korganizer-alarm.control | |||
@@ -5,3 +5,3 @@ Maintainer: Lutz Rogowski <lutz@pi-sync.net> | |||
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: 1.9.1 | 6 | Version: 1.9.2 |
7 | License: GPL | 7 | License: GPL |
diff --git a/korganizer.control b/korganizer.control index aac713a..1fe90cb 100644 --- a/korganizer.control +++ b/korganizer.control | |||
@@ -1,2 +1,2 @@ | |||
1 | Files: bin/kopi apps/Pim/korganizer.desktop pics/korganizer/* lib/libmicro* | 1 | Files: bin/kopi apps/Pim/korganizer.desktop pics/kdepim/korganizer/* |
2 | 2 | ||
@@ -6,6 +6,6 @@ Maintainer: Lutz Rogowski <lutz@pi-sync.net> | |||
6 | Architecture: arm | 6 | Architecture: arm |
7 | Version: 1.6.4b | 7 | Version: 1.9.2 |
8 | License: GPL | 8 | License: GPL |
9 | Depends: | 9 | Depends: lib/libmicrokde.so |
10 | Description: KOrganizer/Pi | 10 | Description: KOrganizer/Pi and Kaddressbook/Pi |
11 | The embedded version of KOrganizer/Platform-independend, | 11 | The embedded version of KOrganizer/Platform-independend, |
@@ -0,0 +1,272 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | QTE_VERSION=2.3.7 | ||
4 | DEB_VERSION=2.0 | ||
5 | |||
6 | LIBQPE_VERSION=1.5.2 | ||
7 | LIBQPE_VERSION_MAJ=1 | ||
8 | LIBQPE_VERSION_MIN=5 | ||
9 | LIBQPE_VERSION_PAT=2 | ||
10 | |||
11 | # Have to do this here, since CVS can't store symlinks | ||
12 | mkdir -p $QPEDIR/etc/rc2.d | ||
13 | rm -f $QPEDIR/etc/rc2.d/S98qpe | ||
14 | ln -s ../init.d/qpe $QPEDIR/etc/rc2.d/S98qpe | ||
15 | |||
16 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$QPEDIR/include/qpe/version.h) | ||
17 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$QPEDIR/include/qpe/version.h) | ||
18 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$QPEDIR/include/qpe/version.h) | ||
19 | if grep -q 'QPE_VERSION .*snapshot' $QPEDIR/include/qpe/version.h | ||
20 | then | ||
21 | VERSION_CVS="_$(date +%Y%m%d)" | ||
22 | else | ||
23 | VERSION_CVS="" | ||
24 | fi | ||
25 | |||
26 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT | ||
27 | |||
28 | ARCH=arm | ||
29 | CPU_ARCH=arm | ||
30 | DEVICE_ARCH=SHARP | ||
31 | STRIP=arm-linux-strip | ||
32 | STRIP_FILES="*ARM*not stripped" | ||
33 | |||
34 | TDIR=/tmp/ipk$$ | ||
35 | DATADIR=$TDIR/data | ||
36 | CTRLDIR=$TDIR/control | ||
37 | |||
38 | IMAGEDIR= | ||
39 | VERB= | ||
40 | LIST= | ||
41 | RPM= | ||
42 | QUICKLAUNCH= | ||
43 | RDIR=$PWD | ||
44 | |||
45 | while [ $# -ne 0 ] | ||
46 | do | ||
47 | case "$1" in | ||
48 | -v) | ||
49 | VERB=1 | ||
50 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" | ||
51 | ;; -l) | ||
52 | LIST=1 | ||
53 | ;; -i) | ||
54 | shift | ||
55 | IMAGEDIR=$1 | ||
56 | DATADIR=$IMAGEDIR | ||
57 | mkdir -p $IMAGEDIR | ||
58 | ;; -rpm) | ||
59 | if [ "$QPEDIR" != "/opt/QtPalmtop" ] | ||
60 | then | ||
61 | echo >&2 '$QPEDIR is not the standard /usr/Qtopia directory.' | ||
62 | sleep 1 | ||
63 | #exit 1 | ||
64 | fi | ||
65 | RPM=1 | ||
66 | ;; -arch) | ||
67 | shift | ||
68 | ARCH=$1 | ||
69 | STRIP= | ||
70 | STRIP_FILES= | ||
71 | ;; -platform) | ||
72 | shift | ||
73 | DEVICE_ARCH=$1 | ||
74 | CPU_ARCH=arm | ||
75 | ;; -o) | ||
76 | shift | ||
77 | RDIR=$1 | ||
78 | ;; -quicklaunch) | ||
79 | QUICKLAUNCH=1 | ||
80 | ;; /*) | ||
81 | FILES="$FILES $1" | ||
82 | ;; *) | ||
83 | FILES="$FILES $PWD/$1" | ||
84 | esac | ||
85 | shift | ||
86 | done | ||
87 | |||
88 | |||
89 | if [ -z "$FILES" ] | ||
90 | then | ||
91 | FILES=`find $QPEDIR -name "*.control" -print` | ||
92 | fi | ||
93 | |||
94 | cd $QPEDIR | ||
95 | |||
96 | for i in $FILES | ||
97 | do | ||
98 | rm -rf $TDIR | ||
99 | |||
100 | mkdir -p $DATADIR | ||
101 | mkdir -p $CTRLDIR | ||
102 | |||
103 | packagename=${i##*/}; packagename=${packagename%.control} | ||
104 | version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"') | ||
105 | depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"') | ||
106 | files=$(eval echo $(sed -n -e "s/^Files://p" $i)) | ||
107 | arch=$(eval echo '"'$(sed -n -e "s/^Arch: *//p" $i)'"') | ||
108 | platform=$(eval echo '"'$(sed -n -e "s/^Architecture: *//p" $i)'"') | ||
109 | section=$(sed -n -e "s/^Section: *//p" $i) | ||
110 | license=$(sed -n -e "s/^License: *//p" $i) | ||
111 | summary=$(sed -n -e "s/^Description: *//p" $i) | ||
112 | package=${packagename}_${version}_$ARCH | ||
113 | ERROR= | ||
114 | if [ -z "$files" ] | ||
115 | then | ||
116 | mkdir -p $DATADIR/usr/share/doc/$packagename | ||
117 | else | ||
118 | if [ -n "$QUICKLAUNCH" ] | ||
119 | then | ||
120 | for f in $files | ||
121 | do | ||
122 | case $f in | ||
123 | bin/*) | ||
124 | # if the bin name is a link then we assume quicklauncher is | ||
125 | # being used and add the application plugin to the project | ||
126 | if [ -L $QPEDIR/$f ] | ||
127 | then | ||
128 | plugin=$(echo $f | sed -n -e "s/^bin\/*//p") | ||
129 | pfiles=$(find $QPEDIR/plugins/application -name "lib$plugin.so*") | ||
130 | for pf in $pfiles | ||
131 | do | ||
132 | pf=$(basename $pf) | ||
133 | files="$files plugins/application/$pf" | ||
134 | done | ||
135 | fi | ||
136 | esac | ||
137 | done | ||
138 | fi | ||
139 | |||
140 | for f in $files | ||
141 | do | ||
142 | if [ -d $f ] | ||
143 | then | ||
144 | ffiles=$(find $f -type f -o -type b -o -type c -o -type l) | ||
145 | else | ||
146 | ffiles=$f | ||
147 | fi | ||
148 | for ff in $ffiles | ||
149 | do | ||
150 | case $ff in | ||
151 | */CVS/*) | ||
152 | continue | ||
153 | ;;*~) | ||
154 | continue | ||
155 | ;;*.control) | ||
156 | continue | ||
157 | ;; $QTDIR/*) | ||
158 | BASE=/opt/QtPalmtop/$(dirname ${ff#$QTDIR/}) | ||
159 | ;; etc/*.d/*) | ||
160 | BASE=$(dirname /$ff) | ||
161 | ;; ipaq/*) | ||
162 | BASE=$(dirname ${ff#ipaq}) | ||
163 | ;; *) | ||
164 | BASE=/opt/QtPalmtop/$(dirname $ff) | ||
165 | esac | ||
166 | |||
167 | if [ -f $ff -o -b $ff -o -c $ff -o -L $ff ] | ||
168 | then | ||
169 | D=$DATADIR$BASE | ||
170 | if [ -x $ff -a -n "$STRIP" ] | ||
171 | then | ||
172 | case $(file $ff) in | ||
173 | $STRIP_FILES) | ||
174 | $STRIP $ff | ||
175 | ;; *) | ||
176 | esac | ||
177 | fi | ||
178 | if [ -n "$RPM" ] | ||
179 | then | ||
180 | case "$ff" in | ||
181 | /*) RPMFILES="$RPMFILES $ff" | ||
182 | ;; *) RPMFILES="$RPMFILES $QPEDIR/$ff" | ||
183 | esac | ||
184 | else | ||
185 | mkdir -p $D | ||
186 | if cp -a $ff $D | ||
187 | then | ||
188 | true | ||
189 | else | ||
190 | ERROR=1 | ||
191 | fi | ||
192 | fi | ||
193 | else | ||
194 | echo >&2 "$0: $i: No such file: $ff" | ||
195 | ERROR=1 | ||
196 | fi | ||
197 | done | ||
198 | done | ||
199 | fi | ||
200 | if [ -z "$ERROR" ] | ||
201 | then | ||
202 | if [ -n "$RPM" ] | ||
203 | then | ||
204 | SPEC=/tmp/mkipks-rpm-$$.spec | ||
205 | echo >$SPEC "Summary: $summary" | ||
206 | echo >>$SPEC "Name: $packagename" | ||
207 | echo >>$SPEC "Group: $section" ########## | ||
208 | echo >>$SPEC "License: $license" | ||
209 | echo >>$SPEC "Version: ${version%-*}" | ||
210 | echo >>$SPEC "Release: ${version#*-}" | ||
211 | |||
212 | echo >>$SPEC "%description" | ||
213 | sed -n -e '/^Description:/,$ p' $i | tail +2 >>$SPEC | ||
214 | echo >>$SPEC "%files" | ||
215 | echo >>$SPEC "%defattr(-,root,root)" | ||
216 | /bin/ls $RPMFILES >>$SPEC | ||
217 | rpm -bb --target $ARCH-unknown-linux $SPEC | ||
218 | # rm $SPEC | ||
219 | elif [ -z "$IMAGEDIR" ] | ||
220 | then | ||
221 | if [ -z `which mkfs.jffs2` ] | ||
222 | then | ||
223 | size=$(du -h -s $DATADIR | sed -e 's/[ ].*//') | ||
224 | else | ||
225 | size=$(mkfs.jffs2 -r $DATADIR | wc -c) | ||
226 | fi | ||
227 | echo "Package: $packagename" >$CTRLDIR/control | ||
228 | echo "Installed-Size: $size" >>$CTRLDIR/control | ||
229 | echo "Filename: ./$package.ipk" >>$CTRLDIR/control | ||
230 | if [ -n $platform ] | ||
231 | then | ||
232 | echo "Architecture: $platform" >> $CTRLDIR/control | ||
233 | fi | ||
234 | if [ -n $arch ] | ||
235 | then | ||
236 | echo "Arch: $arch" >> $CTRLDIR/control | ||
237 | fi | ||
238 | echo "Version: $version" >>$CTRLDIR/control | ||
239 | if [ -n "$depends" ]; then echo "Depends: $depends" >>$CTRLDIR/control; fi | ||
240 | egrep -v "^(Files|Version|Depends|Arch|Architecture):" >>$CTRLDIR/control $i | ||
241 | echo "$DEB_VERSION" >$TDIR/debian-binary | ||
242 | base=${i%.control} | ||
243 | scripts="preinst postinst prerm postrm" | ||
244 | for pf in $scripts | ||
245 | do | ||
246 | if [ -x ${base}.$pf ] | ||
247 | then | ||
248 | cp ${base}.$pf $CTRLDIR/$pf | ||
249 | fi | ||
250 | done | ||
251 | if [ "$UID" = 0 ] | ||
252 | then | ||
253 | chown -R root.root $TDIR | ||
254 | fi | ||
255 | ( cd $CTRLDIR; tar cfz ../control.tar.gz ./*; ) | ||
256 | ( cd $DATADIR; tar cfz ../data.tar.gz ./*; ) | ||
257 | ( cd $TDIR; rm -rf control data; tar cf - ./debian-binary ./control.tar.gz ./data.tar.gz; ) | gzip >$RDIR/$package.ipk | ||
258 | rm -rf $TDIR | ||
259 | RESULT=$package.ipk | ||
260 | if [ -n "$VERB" ] | ||
261 | then | ||
262 | echo >&2 "Built $RESULT ($size)" | ||
263 | fi | ||
264 | if [ -n "$LIST" ] | ||
265 | then | ||
266 | echo $RESULT | ||
267 | fi | ||
268 | fi | ||
269 | else | ||
270 | echo >&2 "Not building $package package" | ||
271 | fi | ||
272 | done | ||