2015-01-16 22:14:53 +01:00
|
|
|
APP=freedombone
|
|
|
|
VERSION=1.00
|
|
|
|
RELEASE=1
|
|
|
|
PREFIX?=/usr/local
|
|
|
|
|
|
|
|
all:
|
|
|
|
debug:
|
|
|
|
source:
|
|
|
|
tar -cvf ../${APP}_${VERSION}.orig.tar ../${APP}-${VERSION} --exclude-vcs
|
|
|
|
gzip -f9n ../${APP}_${VERSION}.orig.tar
|
|
|
|
install:
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
2015-01-16 22:45:28 +01:00
|
|
|
install -m 755 src/${APP} ${DESTDIR}${PREFIX}/bin
|
|
|
|
install -m 755 src/${APP}-prep ${DESTDIR}${PREFIX}/bin
|
2015-01-31 21:36:35 +01:00
|
|
|
install -m 755 src/${APP}-client ${DESTDIR}${PREFIX}/bin
|
|
|
|
install -m 755 src/${APP}-remote ${DESTDIR}${PREFIX}/bin
|
2015-01-31 23:31:02 +01:00
|
|
|
install -m 755 src/${APP}-config ${DESTDIR}${PREFIX}/bin
|
2015-02-01 15:57:59 +01:00
|
|
|
install -m 755 src/${APP}-sec ${DESTDIR}${PREFIX}/bin
|
2015-03-31 21:22:42 +02:00
|
|
|
install -m 755 src/${APP}-addcert ${DESTDIR}${PREFIX}/bin
|
2015-03-31 22:58:42 +02:00
|
|
|
install -m 755 src/${APP}-addlist ${DESTDIR}${PREFIX}/bin
|
2015-03-31 23:29:03 +02:00
|
|
|
install -m 755 src/${APP}-addemail ${DESTDIR}${PREFIX}/bin
|
2015-04-03 19:19:56 +02:00
|
|
|
install -m 755 src/${APP}-renew-cert ${DESTDIR}${PREFIX}/bin
|
2015-01-16 22:14:53 +01:00
|
|
|
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1
|
|
|
|
install -m 644 man/${APP}.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-01-16 22:58:29 +01:00
|
|
|
install -m 644 man/${APP}-prep.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-01-24 20:54:53 +01:00
|
|
|
install -m 644 man/${APP}-client.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-01-31 21:36:35 +01:00
|
|
|
install -m 644 man/${APP}-remote.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-01-31 23:31:02 +01:00
|
|
|
install -m 644 man/${APP}-config.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-02-01 15:57:59 +01:00
|
|
|
install -m 644 man/${APP}-sec.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-03-31 21:22:42 +02:00
|
|
|
install -m 644 man/${APP}-addcert.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-03-31 22:58:42 +02:00
|
|
|
install -m 644 man/${APP}-addlist.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-03-31 23:29:03 +02:00
|
|
|
install -m 644 man/${APP}-addemail.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-04-03 19:19:56 +02:00
|
|
|
install -m 644 man/${APP}-renew-cert.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
2015-01-16 22:14:53 +01:00
|
|
|
uninstall:
|
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}.1.gz
|
2015-01-16 22:58:29 +01:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-prep.1.gz
|
2015-01-24 20:54:53 +01:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-client.1.gz
|
2015-01-31 21:36:35 +01:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-remote.1.gz
|
2015-01-31 23:31:02 +01:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-config.1.gz
|
2015-02-01 15:57:59 +01:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-sec.1.gz
|
2015-03-31 21:22:42 +02:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-addcert.1.gz
|
2015-03-31 22:58:42 +02:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-addlist.1.gz
|
2015-03-31 23:29:03 +02:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-addemail.1.gz
|
2015-04-03 19:19:56 +02:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}-renew-cert.1.gz
|
2015-01-16 22:14:53 +01:00
|
|
|
rm -rf ${PREFIX}/share/${APP}
|
|
|
|
rm -f ${PREFIX}/bin/${APP}
|
|
|
|
rm -f ${PREFIX}/bin/${APP}-prep
|
2015-01-31 21:36:35 +01:00
|
|
|
rm -f ${PREFIX}/bin/${APP}-client
|
|
|
|
rm -f ${PREFIX}/bin/${APP}-remote
|
2015-01-31 23:31:02 +01:00
|
|
|
rm -f ${PREFIX}/bin/${APP}-config
|
2015-02-01 15:57:59 +01:00
|
|
|
rm -f ${PREFIX}/bin/${APP}-sec
|
2015-03-31 21:22:42 +02:00
|
|
|
rm -f ${PREFIX}/bin/${APP}-addcert
|
2015-03-31 22:58:42 +02:00
|
|
|
rm -f ${PREFIX}/bin/${APP}-addlist
|
2015-03-31 23:29:03 +02:00
|
|
|
rm -f ${PREFIX}/bin/${APP}-addemail
|
2015-04-03 19:19:56 +02:00
|
|
|
rm -f ${PREFIX}/bin/${APP}-renew-cert
|
2015-01-16 22:14:53 +01:00
|
|
|
clean:
|
|
|
|
rm -f \#* \.#* debian/*.substvars debian/*.log
|
|
|
|
rm -fr deb.* debian/${APP}
|
|
|
|
rm -f ../${APP}*.deb ../${APP}*.changes ../${APP}*.asc ../${APP}*.dsc
|
|
|
|
sourcedeb:
|
|
|
|
tar -cvf ../${APP}_${VERSION}.orig.tar ../${APP}-${VERSION} --exclude-vcs --exclude 'debian'
|
|
|
|
gzip -f9n ../${APP}_${VERSION}.orig.tar
|