summaryrefslogtreecommitdiff
authorkergoth <kergoth>2002-12-11 19:57:00 (UTC)
committer kergoth <kergoth>2002-12-11 19:57:00 (UTC)
commit3faddab31483bda0dd9d093cd473ffb801207b9c (patch) (unidiff)
tree5d7d16ee4114168b4468dc71e5c140a801ad13db
parentf55158aac4a23cbdca20145634886b2b757d4465 (diff)
downloadopie-3faddab31483bda0dd9d093cd473ffb801207b9c.zip
opie-3faddab31483bda0dd9d093cd473ffb801207b9c.tar.gz
opie-3faddab31483bda0dd9d093cd473ffb801207b9c.tar.bz2
create opie startup script links in postinst, remove in prerm, instead of including the link in the ipk
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--library/opie-base.control2
-rwxr-xr-xlibrary/opie-base.postinst11
-rwxr-xr-xlibrary/opie-base.prerm5
-rwxr-xr-xmkipks2
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 @@
1Files: 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/* 1Files: 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/*
2Priority: required 2Priority: required
3Section: opie/system 3Section: opie/system
4Maintainer: Project Opie <opie@handhelds.org> 4Maintainer: Project Opie <opie@handhelds.org>
5Architecture: arm 5Architecture: arm
6Version: $QPE_VERSION-$SUB_VERSION.2 6Version: $QPE_VERSION-$SUB_VERSION.2
7Provides: qpe-base 7Provides: qpe-base
8Conflicts: qpe-base 8Conflicts: qpe-base
9Depends: qt-embedded (>=$QTE_VERSION), opie-qcop, opie-taskbar, opie-sounds, apmd, opie-pics, libopie, timezones 9Depends: qt-embedded (>=$QTE_VERSION), opie-qcop, opie-taskbar, opie-sounds, apmd, opie-pics, libopie, timezones
10Description: Base Opie environment 10Description: 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
3ln -sf ../init.d/opie /etc/rc0.d/K98opie
4ln -sf ../init.d/opie /etc/rc1.d/K98opie
5ln -sf ../init.d/opie /etc/rc6.d/K98opie
6ln -sf ../init.d/opie /etc/rc2.d/S98opie
7ln -sf ../init.d/opie /etc/rc3.d/S98opie
8ln -sf ../init.d/opie /etc/rc4.d/S98opie
9ln -sf ../init.d/opie /etc/rc5.d/S98opie
10
11exit 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
3find /etc -name [SK][0-9][0-9]opie | xargs rm -f
4
5exit 0
diff --git a/mkipks b/mkipks
index b238935..c39b66f 100755
--- a/mkipks
+++ b/mkipks
@@ -1,104 +1,102 @@
1#!/bin/sh 1#!/bin/sh
2 2
3QTE_VERSION=2.3.4 3QTE_VERSION=2.3.4
4DEB_VERSION=2.0 4DEB_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
7mkdir -p $OPIEDIR/etc/rc2.d
8ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie
9 7
10mkdir -p $OPIEDIR/etc/rcS.d 8mkdir -p $OPIEDIR/etc/rcS.d
11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash 9ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
12 10
13VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 11VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
14VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 12VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
15VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h) 13VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
16SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) 14SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
17if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 15if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
18then 16then
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
21else 19else
22 VERSION_CVS="" 20 VERSION_CVS=""
23fi 21fi
24 22
25QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT 23QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
26 24
27ARCH=arm 25ARCH=arm
28STRIP=arm-linux-strip 26STRIP=arm-linux-strip
29STRIP_FILES="*ARM*not stripped" 27STRIP_FILES="*ARM*not stripped"
30 28
31TDIR=/tmp/ipk$$ 29TDIR=/tmp/ipk$$
32DATADIR=$TDIR 30DATADIR=$TDIR
33CTRLDIR=$TDIR/CONTROL 31CTRLDIR=$TDIR/CONTROL
34 32
35IMAGEDIR= 33IMAGEDIR=
36VERB= 34VERB=
37LIST= 35LIST=
38RPM= 36RPM=
39 37
40while [ $# -ne 0 ] 38while [ $# -ne 0 ]
41do 39do
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" ]
57 then 55 then
58 echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.' 56 echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.'
59 sleep 1 57 sleep 1
60 #exit 1 58 #exit 1
61 fi 59 fi
62 RPM=1 60 RPM=1
63 ;; -arch) 61 ;; -arch)
64 shift 62 shift
65 ARCH=$1 63 ARCH=$1
66 STRIP= 64 STRIP=
67 STRIP_FILES= 65 STRIP_FILES=
68 ;; /*) 66 ;; /*)
69 FILES="$FILES $1" 67 FILES="$FILES $1"
70 ;; *) 68 ;; *)
71 FILES="$FILES $PWD/$1" 69 FILES="$FILES $PWD/$1"
72 esac 70 esac
73 shift 71 shift
74done 72done
75 73
76if [ -z "$FILES" ] 74if [ -z "$FILES" ]
77then 75then
78 FILES=`find $OPIEDIR -name "*.control" -print` 76 FILES=`find $OPIEDIR -name "*.control" -print`
79fi 77fi
80 78
81RDIR=$PWD 79RDIR=$PWD
82ORIGDIR=`pwd` 80ORIGDIR=`pwd`
83cd $OPIEDIR 81cd $OPIEDIR
84 82
85for i in $FILES 83for i in $FILES
86do 84do
87 rm -rf $TDIR 85 rm -rf $TDIR
88 86
89 mkdir -p $DATADIR 87 mkdir -p $DATADIR
90 mkdir -p $CTRLDIR 88 mkdir -p $CTRLDIR
91 89
92 packagename=${i##*/}; packagename=${packagename%.control} 90 packagename=${i##*/}; packagename=${packagename%.control}
93 version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"') 91 version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"')
94 depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"') 92 depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"')
95 files=$(eval echo $(sed -n -e "s/^Files://p" $i)) 93 files=$(eval echo $(sed -n -e "s/^Files://p" $i))
96 arch=$(eval echo $(sed -n -e "s/^Arch://p" $i)) 94 arch=$(eval echo $(sed -n -e "s/^Arch://p" $i))
97 section=$(sed -n -e "s/^Section: *//p" $i) 95 section=$(sed -n -e "s/^Section: *//p" $i)
98 provides=$(sed -n -e "s/^Provides: *//p" $i) 96 provides=$(sed -n -e "s/^Provides: *//p" $i)
99 conflicts=$(sed -n -e "s/^Conflicts: *//p" $i) 97 conflicts=$(sed -n -e "s/^Conflicts: *//p" $i)
100 license=$(sed -n -e "s/^License: *//p" $i) 98 license=$(sed -n -e "s/^License: *//p" $i)
101 summary=$(sed -n -e "s/^Description: *//p" $i) 99 summary=$(sed -n -e "s/^Description: *//p" $i)
102 package=${packagename}_${version}_$ARCH 100 package=${packagename}_${version}_$ARCH
103 ERROR= 101 ERROR=
104 if [ -z "$files" ] 102 if [ -z "$files" ]