-rw-r--r-- | core/opiealarm/opie-opiealarm.control | 2 | ||||
-rwxr-xr-x | core/opiealarm/opie-opiealarm.postinst | 10 | ||||
-rwxr-xr-x | core/opiealarm/opie-opiealarm.prerm | 1 | ||||
-rwxr-xr-x | mkipks | 4 |
4 files changed, 11 insertions, 6 deletions
diff --git a/core/opiealarm/opie-opiealarm.control b/core/opiealarm/opie-opiealarm.control index 5413ba8..9581649 100644 --- a/core/opiealarm/opie-opiealarm.control +++ b/core/opiealarm/opie-opiealarm.control | |||
@@ -1,13 +1,13 @@ | |||
1 | Files: bin/opiealarm bin/opieatd root/etc/init.d/opieatd root/etc/rc2.d/S96opieatd root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm | 1 | Files: bin/opiealarm bin/opieatd root/etc/init.d/opieatd root/etc/suspend-scripts/S46opiealarm root/etc/resume-scripts/R46opiealarm |
2 | Priority: required | 2 | Priority: required |
3 | Provides: ipaqalarm | 3 | Provides: ipaqalarm |
4 | Conflicts: ipaqalarm | 4 | Conflicts: ipaqalarm |
5 | Section: opie/system | 5 | Section: opie/system |
6 | Maintainer: Robert Griebl <sandman@handhelds.org> | 6 | Maintainer: Robert Griebl <sandman@handhelds.org> |
7 | Architecture: arm | 7 | Architecture: arm |
8 | Version: $QPE_VERSION-$SUB_VERSION | 8 | Version: $QPE_VERSION-$SUB_VERSION |
9 | Depends: hotplug | 9 | Depends: hotplug |
10 | Description: A wakeup system for OPIE events. | 10 | Description: A wakeup system for OPIE events. |
11 | Tiny, OPIE specific replacement for ipaqalarm, | 11 | Tiny, OPIE specific replacement for ipaqalarm, |
12 | uschedule and qpe2uschedule | 12 | uschedule and qpe2uschedule |
13 | 13 | ||
diff --git a/core/opiealarm/opie-opiealarm.postinst b/core/opiealarm/opie-opiealarm.postinst index 7fc8350..58298e1 100755 --- a/core/opiealarm/opie-opiealarm.postinst +++ b/core/opiealarm/opie-opiealarm.postinst | |||
@@ -1,4 +1,12 @@ | |||
1 | #/bin/sh | 1 | #/bin/sh |
2 | 2 | ||
3 | ln -sf ../init.d/opieatd /etc/rc0.d/K96opieatd | ||
4 | ln -sf ../init.d/opieatd /etc/rc1.d/K96opieatd | ||
5 | ln -sf ../init.d/opieatd /etc/rc6.d/K96opieatd | ||
6 | ln -sf ../init.d/opieatd /etc/rc2.d/S96opieatd | ||
7 | ln -sf ../init.d/opieatd /etc/rc3.d/S96opieatd | ||
8 | ln -sf ../init.d/opieatd /etc/rc4.d/S96opieatd | ||
9 | ln -sf ../init.d/opieatd /etc/rc5.d/S96opieatd | ||
3 | /etc/init.d/opieatd start | 10 | /etc/init.d/opieatd start |
4 | exit 0 \ No newline at end of file | 11 | |
12 | exit 0 | ||
diff --git a/core/opiealarm/opie-opiealarm.prerm b/core/opiealarm/opie-opiealarm.prerm index b37df5e..5e797b6 100755 --- a/core/opiealarm/opie-opiealarm.prerm +++ b/core/opiealarm/opie-opiealarm.prerm | |||
@@ -1,4 +1,5 @@ | |||
1 | #/bin/sh | 1 | #/bin/sh |
2 | 2 | ||
3 | /etc/init.d/opieatd stop | 3 | /etc/init.d/opieatd stop |
4 | find /etc -name [SK][0-9][0-9]opieatd | xargs rm -f | ||
4 | exit 0 | 5 | exit 0 |
@@ -1,112 +1,108 @@ | |||
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 | 7 | mkdir -p $OPIEDIR/etc/rc2.d |
8 | ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie | 8 | ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie |
9 | 9 | ||
10 | mkdir -p $OPIEDIR/etc/rcS.d | 10 | mkdir -p $OPIEDIR/etc/rcS.d |
11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash | 11 | ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash |
12 | 12 | ||
13 | ln -sf ../init.d/opieatd $OPIEDIR/root/etc/rc2.d/S96opieatd | ||
14 | |||
15 | |||
16 | |||
17 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) | 13 | VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h) |
18 | VERSION_MIN=$(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) |
19 | VERSION_PAT=$(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) |
20 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) | 16 | SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h) |
21 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h | 17 | if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h |
22 | then | 18 | then |
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 |
25 | else | 21 | else |
26 | VERSION_CVS="" | 22 | VERSION_CVS="" |
27 | fi | 23 | fi |
28 | 24 | ||
29 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT | 25 | QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT |
30 | 26 | ||
31 | ARCH=arm | 27 | ARCH=arm |
32 | STRIP=arm-linux-strip | 28 | STRIP=arm-linux-strip |
33 | STRIP_FILES="*ARM*not stripped" | 29 | STRIP_FILES="*ARM*not stripped" |
34 | 30 | ||
35 | TDIR=/tmp/ipk$$ | 31 | TDIR=/tmp/ipk$$ |
36 | DATADIR=$TDIR | 32 | DATADIR=$TDIR |
37 | CTRLDIR=$TDIR/CONTROL | 33 | CTRLDIR=$TDIR/CONTROL |
38 | 34 | ||
39 | IMAGEDIR= | 35 | IMAGEDIR= |
40 | VERB= | 36 | VERB= |
41 | LIST= | 37 | LIST= |
42 | RPM= | 38 | RPM= |
43 | 39 | ||
44 | while [ $# -ne 0 ] | 40 | while [ $# -ne 0 ] |
45 | do | 41 | do |
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 |
78 | done | 74 | done |
79 | 75 | ||
80 | if [ -z "$FILES" ] | 76 | if [ -z "$FILES" ] |
81 | then | 77 | then |
82 | FILES=`find $OPIEDIR -name "*.control" -print` | 78 | FILES=`find $OPIEDIR -name "*.control" -print` |
83 | fi | 79 | fi |
84 | 80 | ||
85 | RDIR=$PWD | 81 | RDIR=$PWD |
86 | ORIGDIR=`pwd` | 82 | ORIGDIR=`pwd` |
87 | cd $OPIEDIR | 83 | cd $OPIEDIR |
88 | 84 | ||
89 | for i in $FILES | 85 | for i in $FILES |
90 | do | 86 | do |
91 | rm -rf $TDIR | 87 | rm -rf $TDIR |
92 | 88 | ||
93 | mkdir -p $DATADIR | 89 | mkdir -p $DATADIR |
94 | mkdir -p $CTRLDIR | 90 | mkdir -p $CTRLDIR |
95 | 91 | ||
96 | packagename=${i##*/}; packagename=${packagename%.control} | 92 | packagename=${i##*/}; packagename=${packagename%.control} |
97 | version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"') | 93 | version=$(eval echo '"'$(sed -n -e "s/^Version: *//p" $i)'"') |
98 | depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"') | 94 | depends=$(eval echo '"'$(sed -n -e "s/^Depends: *//p" $i)'"') |
99 | files=$(eval echo $(sed -n -e "s/^Files://p" $i)) | 95 | files=$(eval echo $(sed -n -e "s/^Files://p" $i)) |
100 | arch=$(eval echo $(sed -n -e "s/^Arch://p" $i)) | 96 | arch=$(eval echo $(sed -n -e "s/^Arch://p" $i)) |
101 | section=$(sed -n -e "s/^Section: *//p" $i) | 97 | section=$(sed -n -e "s/^Section: *//p" $i) |
102 | provides=$(sed -n -e "s/^Provides: *//p" $i) | 98 | provides=$(sed -n -e "s/^Provides: *//p" $i) |
103 | conflicts=$(sed -n -e "s/^Conflicts: *//p" $i) | 99 | conflicts=$(sed -n -e "s/^Conflicts: *//p" $i) |
104 | license=$(sed -n -e "s/^License: *//p" $i) | 100 | license=$(sed -n -e "s/^License: *//p" $i) |
105 | summary=$(sed -n -e "s/^Description: *//p" $i) | 101 | summary=$(sed -n -e "s/^Description: *//p" $i) |
106 | package=${packagename}_${version}_$ARCH | 102 | package=${packagename}_${version}_$ARCH |
107 | ERROR= | 103 | ERROR= |
108 | if [ -z "$files" ] | 104 | if [ -z "$files" ] |
109 | then | 105 | then |
110 | mkdir -p $DATADIR/usr/share/doc/$packagename | 106 | mkdir -p $DATADIR/usr/share/doc/$packagename |
111 | else | 107 | else |
112 | for f in $files | 108 | for f in $files |