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) (side-by-side diff)
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 @@
#!/bin/sh
QTE_VERSION=2.3.4
DEB_VERSION=2.0
# Have to do this here, since CVS can't store symlinks
mkdir -p $OPIEDIR/etc/rc2.d
ln -sf ../init.d/opie $OPIEDIR/etc/rc2.d/S98opie
mkdir -p $OPIEDIR/etc/rcS.d
ln -sf ../init.d/bootsplash $OPIEDIR/etc/rcS.d/S01bootsplash
-ln -sf ../init.d/opieatd $OPIEDIR/root/etc/rc2.d/S96opieatd
-
-
-
VERSION_MAJ=$(sed -n -e 's/.*QPE_VERSION "\([0-9]*\)\..*\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
VERSION_MIN=$(sed -n -e 's/.*QPE_VERSION ".*\.\([0-9]*\)\..*".*/\1/p' <$OPIEDIR/include/qpe/version.h)
VERSION_PAT=$(sed -n -e 's/.*QPE_VERSION ".*\..*\.\([0-9]*\).*/\1/p' <$OPIEDIR/include/qpe/version.h)
SUB_VERSION=$(sed -n -e 's,.*SUB_VERSION \"\(.*\)\".*,\1,p' <$OPIEDIR/include/qpe/version.h)
if grep -q 'QPE_VERSION .*snapshot' $OPIEDIR/include/qpe/version.h
then
[ -z "$VERSION_CVS" ] && VERSION_CVS="$(date +%Y%m%d)"
SUB_VERSION=$VERSION_CVS
else
VERSION_CVS=""
fi
QPE_VERSION=$VERSION_MAJ.$VERSION_MIN.$VERSION_PAT
ARCH=arm
STRIP=arm-linux-strip
STRIP_FILES="*ARM*not stripped"
TDIR=/tmp/ipk$$
DATADIR=$TDIR
CTRLDIR=$TDIR/CONTROL
IMAGEDIR=
VERB=
LIST=
RPM=
while [ $# -ne 0 ]
do
case "$1" in
-v)
VERB=1
echo >&2 "Packaging for version $VERSION_MAJ.$VERSION_MIN.$VERSION_PAT$VERSION_CVS"
;; -l)
LIST=1
;; -i)
shift
IMAGEDIR=$1
DATADIR=$IMAGEDIR
mkdir -p $IMAGEDIR
;; -classic)
classicopts=-c
;; -rpm)
if [ "$OPIEDIR" != "/opt/Qtopia" ]
then
echo >&2 '$OPIEDIR is not the standard /usr/Qtopia directory.'
sleep 1
#exit 1
fi
RPM=1
;; -arch)
shift
ARCH=$1
STRIP=
STRIP_FILES=
;; /*)
FILES="$FILES $1"
;; *)
FILES="$FILES $PWD/$1"
esac
shift
done
if [ -z "$FILES" ]