-rw-r--r-- | library/opie-base.control | 2 | ||||
-rwxr-xr-x | library/opie-base.postinst | 11 | ||||
-rwxr-xr-x | library/opie-base.prerm | 5 | ||||
-rwxr-xr-x | mkipks | 2 |
4 files changed, 17 insertions, 3 deletions
diff --git a/library/opie-base.control b/library/opie-base.control index 2441809..41b0e2e 100644 --- a/library/opie-base.control +++ b/library/opie-base.control | |||
@@ -1,12 +1,12 @@ | |||
1 | Files: etc/colors root/etc/init.d/opie root/etc/rc2.d/S98opie bin/opie-reorgfiles $QTDIR/lib/libqpe.so.1 $QTDIR/lib/libqpe.so.1.5 $QTDIR/lib/libqpe.so.1.5.0 apps/*/.directory etc/mime.types apps/Settings/quit.desktop pics/logo/* | 1 | Files: etc/colors root/etc/init.d/opie bin/opie-reorgfiles $QTDIR/lib/libqpe.so.1 $QTDIR/lib/libqpe.so.1.5 $QTDIR/lib/libqpe.so.1.5.0 apps/*/.directory etc/mime.types apps/Settings/quit.desktop pics/logo/* |
2 | Priority: required | 2 | Priority: required |
3 | Section: opie/system | 3 | Section: opie/system |
4 | Maintainer: Project Opie <opie@handhelds.org> | 4 | Maintainer: Project Opie <opie@handhelds.org> |
5 | Architecture: arm | 5 | Architecture: arm |
6 | Version: $QPE_VERSION-$SUB_VERSION.2 | 6 | Version: $QPE_VERSION-$SUB_VERSION.2 |
7 | Provides: qpe-base | 7 | Provides: qpe-base |
8 | Conflicts: qpe-base | 8 | Conflicts: qpe-base |
9 | Depends: qt-embedded (>=$QTE_VERSION), opie-qcop, opie-taskbar, opie-sounds, apmd, opie-pics, libopie, timezones | 9 | Depends: qt-embedded (>=$QTE_VERSION), opie-qcop, opie-taskbar, opie-sounds, apmd, opie-pics, libopie, timezones |
10 | Description: Base Opie environment | 10 | Description: Base Opie environment |
11 | A complete GUI environment for handhelds. | 11 | A complete GUI environment for handhelds. |
12 | You will probably want to install one of the opie-i18n-* packages. | 12 | You will probably want to install one of the opie-i18n-* packages. |
diff --git a/library/opie-base.postinst b/library/opie-base.postinst new file mode 100755 index 0000000..1d50a99 --- a/dev/null +++ b/library/opie-base.postinst | |||
@@ -0,0 +1,11 @@ | |||
1 | #/bin/sh | ||
2 | |||
3 | ln -sf ../init.d/opie /etc/rc0.d/K98opie | ||
4 | ln -sf ../init.d/opie /etc/rc1.d/K98opie | ||
5 | ln -sf ../init.d/opie /etc/rc6.d/K98opie | ||
6 | ln -sf ../init.d/opie /etc/rc2.d/S98opie | ||
7 | ln -sf ../init.d/opie /etc/rc3.d/S98opie | ||
8 | ln -sf ../init.d/opie /etc/rc4.d/S98opie | ||
9 | ln -sf ../init.d/opie /etc/rc5.d/S98opie | ||
10 | |||
11 | exit 0 | ||
diff --git a/library/opie-base.prerm b/library/opie-base.prerm new file mode 100755 index 0000000..664160b --- a/dev/null +++ b/library/opie-base.prerm | |||
@@ -0,0 +1,5 @@ | |||
1 | #/bin/sh | ||
2 | |||
3 | find /etc -name [SK][0-9][0-9]opie | xargs rm -f | ||
4 | |||
5 | exit 0 | ||
@@ -1,56 +1,54 @@ | |||
1 | #!/bin/sh | 1 | #!/bin/sh |
2 | 2 | ||
3 | QTE_VERSION=2.3.4 | 3 | QTE_VERSION=2.3.4 |
4 | DEB_VERSION=2.0 | 4 | DEB_VERSION=2.0 |
5 | 5 | ||
6 | # Have to do this here, since CVS can't store symlinks | 6 | # Have to do this here, since CVS can't store symlinks |
7 | mkdir -p $OPIEDIR/etc/rc2.d | ||
8 | ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie | ||
9 | 7 | ||
10 | mkdir -p $OPIEDIR/etc/rcS.d | 8 | mkdir -p $OPIEDIR/etc/rcS.d |
11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash | 9 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
12 | 10 | ||
13 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) | 11 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
14 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) | 12 | VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
15 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) | 13 | VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) |
16 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) | 14 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
17 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h | 15 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
18 | then | 16 | then |
19 | [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" | 17 | [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" |
20 | SUB_VERSION=$VERSION_CVS | 18 | SUB_VERSION=$VERSION_CVS |
21 | else | 19 | else |
22 | VERSION_CVS="" | 20 | VERSION_CVS="" |
23 | fi | 21 | fi |
24 | 22 | ||
25 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT | 23 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
26 | 24 | ||
27 | ARCH=arm | 25 | ARCH=arm |
28 | STRIP=arm-linux-strip | 26 | STRIP=arm-linux-strip |
29 | STRIP_FILES="*ARM*not stripped" | 27 | STRIP_FILES="*ARM*not stripped" |
30 | 28 | ||
31 | TDIR=/tmp/ipk$$ | 29 | TDIR=/tmp/ipk$$ |
32 | DATADIR=$TDIR | 30 | DATADIR=$TDIR |
33 | CTRLDIR=$TDIR/CONTROL | 31 | CTRLDIR=$TDIR/CONTROL |
34 | 32 | ||
35 | IMAGEDIR= | 33 | IMAGEDIR= |
36 | VERB= | 34 | VERB= |
37 | LIST= | 35 | LIST= |
38 | RPM= | 36 | RPM= |
39 | 37 | ||
40 | while [ $# -ne 0 ] | 38 | while [ $# -ne 0 ] |
41 | do | 39 | do |
42 | case "$1" in | 40 | case "$1" in |
43 | -v) | 41 | -v) |
44 | VERB=1 | 42 | VERB=1 |
45 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" | 43 | echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" |
46 | ;; -l) | 44 | ;; -l) |
47 | LIST=1 | 45 | LIST=1 |
48 | ;; -i) | 46 | ;; -i) |
49 | shift | 47 | shift |
50 | IMAGEDIR=$1 | 48 | IMAGEDIR=$1 |
51 | DATADIR=$IMAGEDIR | 49 | DATADIR=$IMAGEDIR |
52 | mkdir -p $IMAGEDIR | 50 | mkdir -p $IMAGEDIR |
53 | ;; -classic) | 51 | ;; -classic) |
54 | classicopts=-c | 52 | classicopts=-c |
55 | ;; -rpm) | 53 | ;; -rpm) |
56 | if [ "$OPIEDIR" != "/opt/Qtopia" ] | 54 | if [ "$OPIEDIR" != "/opt/Qtopia" ] |