This commit is contained in:
Bob Mottram 2015-01-16 21:45:28 +00:00
parent 3be2895d0b
commit 3128bf57a7
3 changed files with 31 additions and 3 deletions

View File

@ -10,9 +10,9 @@ source:
gzip -f9n ../${APP}_${VERSION}.orig.tar
install:
mkdir -p ${DESTDIR}${PREFIX}/bin
install -m 755 -s src/${APP} ${DESTDIR}${PREFIX}/bin
install -m 755 -s src/${APP}-prep ${DESTDIR}${PREFIX}/bin
install -m 755 -s src/${APP}-tordongle ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP} ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-prep ${DESTDIR}${PREFIX}/bin
install -m 755 src/${APP}-tordongle ${DESTDIR}${PREFIX}/bin
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1
install -m 644 man/${APP}.1.gz ${DESTDIR}${PREFIX}/share/man/man1
uninstall:

28
debian.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
APP=freedombone
PREV_VERSION=1.00
VERSION=1.00
ARCH_TYPE="all"
DIR=${APP}-${VERSION}
#update version numbers automatically - so you don't have to
sed -i 's/VERSION='${PREV_VERSION}'/VERSION='${VERSION}'/g' Makefile
sed -i 's/VERSION="'${PREV_VERSION}'"/VERSION="'${VERSION}'"/g' src/freedombone
# change the parent directory name to debian format
mv ../${APP} ../${DIR}
# Create a source archive
make clean
make source
# Build the package
dpkg-buildpackage -F
# sign files
gpg -ba ../${APP}_${VERSION}-1_${ARCH_TYPE}.deb
gpg -ba ../${APP}_${VERSION}.orig.tar.gz
# restore the parent directory name
mv ../${DIR} ../${APP}

BIN
man/freedombone.1.gz Normal file

Binary file not shown.