summaryrefslogtreecommitdiff
path: root/mkipks
authorkergoth <kergoth>2002-11-20 22:22:26 (UTC)
committer kergoth <kergoth>2002-11-20 22:22:26 (UTC)
commitbbf51378cf165bb2c60b64a1bad141379145889d (patch) (unidiff)
tree7c5168668e23161f94ffdc7c7754754b7476c5a7 /mkipks
parentb0dc62061b6581cb416f01e706610e4cb076935d (diff)
downloadopie-bbf51378cf165bb2c60b64a1bad141379145889d.zip
opie-bbf51378cf165bb2c60b64a1bad141379145889d.tar.gz
opie-bbf51378cf165bb2c60b64a1bad141379145889d.tar.bz2
Create sys v init script symlinks in postinst and remove in prerm rather than including the links in the ipk
Diffstat (limited to 'mkipks') (more/less context) (ignore whitespace changes)
-rwxr-xr-xmkipks4
1 files changed, 0 insertions, 4 deletions
diff --git a/mkipks b/mkipks
index 798e73f..b238935 100755
--- a/mkipks
+++ b/mkipks
@@ -1,80 +1,76 @@
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 7mkdir -p $OPIEDIR/etc/rc2.d
8ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie 8ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie
9 9
10mkdir -p $OPIEDIR/etc/rcS.d 10mkdir -p $OPIEDIR/etc/rcS.d
11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash 11ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
12 12
13ln -sf ../init.d/opieatd $OPIEDIR/root/etc/rc2.d/S96opieatd
14
15
16
17VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) 13VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
18VERSION_MIN=$(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)
19VERSION_PAT=$(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)
20SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) 16SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
21if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h 17if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
22then 18then
23 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)" 19 [ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)"
24 SUB_VERSION=$VERSION_CVS 20 SUB_VERSION=$VERSION_CVS
25else 21else
26 VERSION_CVS="" 22 VERSION_CVS=""
27fi 23fi
28 24
29QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT 25QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
30 26
31ARCH=arm 27ARCH=arm
32STRIP=arm-linux-strip 28STRIP=arm-linux-strip
33STRIP_FILES="*ARM*not stripped" 29STRIP_FILES="*ARM*not stripped"
34 30
35TDIR=/tmp/ipk$$ 31TDIR=/tmp/ipk$$
36DATADIR=$TDIR 32DATADIR=$TDIR
37CTRLDIR=$TDIR/CONTROL 33CTRLDIR=$TDIR/CONTROL
38 34
39IMAGEDIR= 35IMAGEDIR=
40VERB= 36VERB=
41LIST= 37LIST=
42RPM= 38RPM=
43 39
44while [ $# -ne 0 ] 40while [ $# -ne 0 ]
45do 41do
46 case "$1" in 42 case "$1" in
47 -v) 43 -v)
48 VERB=1 44 VERB=1
49 echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS" 45 echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS"
50 ;; -l) 46 ;; -l)
51 LIST=1 47 LIST=1
52 ;; -i) 48 ;; -i)
53 shift 49 shift
54 IMAGEDIR=$1 50 IMAGEDIR=$1
55 DATADIR=$IMAGEDIR 51 DATADIR=$IMAGEDIR
56 mkdir -p $IMAGEDIR 52 mkdir -p $IMAGEDIR
57 ;; -classic) 53 ;; -classic)
58 classicopts=-c 54 classicopts=-c
59 ;; -rpm) 55 ;; -rpm)
60 if [ "$OPIEDIR" != "/opt/Qtopia" ] 56 if [ "$OPIEDIR" != "/opt/Qtopia" ]
61 then 57 then
62 echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.' 58 echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.'
63 sleep 1 59 sleep 1
64 #exit 1 60 #exit 1
65 fi 61 fi
66 RPM=1 62 RPM=1
67 ;; -arch) 63 ;; -arch)
68 shift 64 shift
69 ARCH=$1 65 ARCH=$1
70 STRIP= 66 STRIP=
71 STRIP_FILES= 67 STRIP_FILES=
72 ;; /*) 68 ;; /*)
73 FILES="$FILES $1" 69 FILES="$FILES $1"
74 ;; *) 70 ;; *)
75 FILES="$FILES $PWD/$1" 71 FILES="$FILES $PWD/$1"
76 esac 72 esac
77 shift 73 shift
78done 74done
79 75
80if [ -z "$FILES" ] 76if [ -z "$FILES" ]