git://git.jankratochvil.net
/
gnokii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to compensate for changes in r158,
[gnokii.git]
/
packaging
/
Slackware
/
SlackBuild.in
diff --git
a/packaging/Slackware/SlackBuild.in
b/packaging/Slackware/SlackBuild.in
index
d49b081
..
0853b6a
100644
(file)
--- a/
packaging/Slackware/SlackBuild.in
+++ b/
packaging/Slackware/SlackBuild.in
@@
-5,11
+5,14
@@
# Written by Pawe³ Kot <pkot@linuxnews.pl>
#
# Written by Pawe³ Kot <pkot@linuxnews.pl>
#
-ARCH=@ARCH@
PN=@PACKAGE@
PV=@VERSION@
PN=@PACKAGE@
PV=@VERSION@
-DOCS="COPYING ChangeLog VERSION Docs/CREDITS Docs/DataCalls-QuickStart Docs/README*"
+ARCH="i386"
+BUILD=1
+
+DOCS1="Docs/*"
+DOCS2="Docs/protocol Docs/sample"
CONF="Docs/sample/gnokiirc"
CWD=`pwd`
CONF="Docs/sample/gnokiirc"
CWD=`pwd`
@@
-34,24
+37,26
@@
tar xzvf $CWD/$PN-$PV.tar.gz
cd $PN-$PV
# Configure and make package
cd $PN-$PV
# Configure and make package
-./configure --prefix=/usr --with-x
--enable-nls $ARCH-slackware-linux || exit 1
-make
|| exit 1
-make prefix=$PKG/usr
install || exit 1
+./configure --prefix=/usr --with-x
gnokiidir=/usr/X11R6 i386-slackware-linux
+make
+make prefix=$PKG/usr
xgnokii_libdir=$PKG/usr/X11R6 install
# Copy the docs
mkdir -p $PKG/usr/doc/$PN-$PV
# Copy the docs
mkdir -p $PKG/usr/doc/$PN-$PV
-cp
-a $DOCS
$PKG/usr/doc/$PN-$PV
-c
hmod 644
$PKG/usr/doc/$PN-$PV
+cp
$DOCS1
$PKG/usr/doc/$PN-$PV
+c
p -r $DOCS2
$PKG/usr/doc/$PN-$PV
# and the configuration
mkdir -p $PKG/etc
# and the configuration
mkdir -p $PKG/etc
-sed "s|/usr/local/sbin|/usr/sbin|" < $CONF > $PKG/etc/gnokiirc
+sed "s|/usr/local/sbin|/usr/sbin|" < $CONF > $PKG/etc/gnokiirc
.new
# Now, add gnokii group, set the permissions
GROUPADD=`which groupadd`
cd $PKG
mkdir install
cat > install/doinst.sh <<EOF
# Now, add gnokii group, set the permissions
GROUPADD=`which groupadd`
cd $PKG
mkdir install
cat > install/doinst.sh <<EOF
+#!/bin/sh
+
$GROUPADD gnokii >/dev/null 2>&1
chown root.gnokii /usr/bin/gnokii
chmod 750 /usr/bin/gnokii
$GROUPADD gnokii >/dev/null 2>&1
chown root.gnokii /usr/bin/gnokii
chmod 750 /usr/bin/gnokii
@@
-59,11
+64,17
@@
chown root.gnokii /usr/sbin/gnokiid
chmod 750 /usr/sbin/gnokiid
chown root.gnokii /usr/sbin/mgnokiidev
chmod 4750 /usr/sbin/mgnokiidev
chmod 750 /usr/sbin/gnokiid
chown root.gnokii /usr/sbin/mgnokiidev
chmod 4750 /usr/sbin/mgnokiidev
+
+if [ -f /etc/gnokiirc ]; then
+ rm -f /etc/gnokiirc.new
+else
+ mv /etc/gnokiirc.new /etc/gnokiirc
+fi
EOF
# and build the package answering "yes" twice
echo "y
EOF
# and build the package answering "yes" twice
echo "y
-y" | makepkg $TMP/$PN.tgz
+y" | makepkg $TMP/$PN
-$PV-$ARCH-$BUILD
.tgz
# Cleanup
rm -rf $TMP/$PN-$PV
# Cleanup
rm -rf $TMP/$PN-$PV