2015-01-16 22:14:53 +01:00
|
|
|
APP=freedombone
|
2016-09-01 10:46:03 +02:00
|
|
|
VERSION=1.02
|
2015-01-16 22:14:53 +01:00
|
|
|
RELEASE=1
|
|
|
|
PREFIX?=/usr/local
|
|
|
|
|
|
|
|
all:
|
|
|
|
debug:
|
2015-12-07 16:14:25 +01:00
|
|
|
translations:
|
2015-12-09 10:20:54 +01:00
|
|
|
bash -c "./translate make"
|
2016-04-10 13:14:06 +02:00
|
|
|
rmtranslations:
|
|
|
|
bash -c "./translate remove"
|
2015-12-09 10:20:54 +01:00
|
|
|
alltranslations:
|
2015-12-07 16:14:25 +01:00
|
|
|
bash -c "./translate translations"
|
2016-07-24 15:43:26 +02:00
|
|
|
tidy:
|
2016-07-24 15:31:15 +02:00
|
|
|
./tidyup src/*
|
2015-01-16 22:14:53 +01:00
|
|
|
source:
|
|
|
|
tar -cvf ../${APP}_${VERSION}.orig.tar ../${APP}-${VERSION} --exclude-vcs
|
|
|
|
gzip -f9n ../${APP}_${VERSION}.orig.tar
|
|
|
|
install:
|
|
|
|
mkdir -p ${DESTDIR}${PREFIX}/bin
|
2016-07-06 21:31:52 +02:00
|
|
|
mkdir -p ${DESTDIR}/usr/share/${APP}/base
|
2016-07-06 21:06:57 +02:00
|
|
|
mkdir -p ${DESTDIR}/usr/share/${APP}/apps
|
2016-07-06 21:27:18 +02:00
|
|
|
mkdir -p ${DESTDIR}/usr/share/${APP}/utils
|
2016-08-03 17:42:41 +02:00
|
|
|
mkdir -p ${DESTDIR}/usr/share/${APP}/avatars
|
2016-04-19 12:21:35 +02:00
|
|
|
mkdir -p ${DESTDIR}/etc/${APP}
|
|
|
|
cp -r image_build/* ${DESTDIR}/etc/${APP}
|
2016-09-27 23:45:59 +02:00
|
|
|
cp img/backgrounds/${APP}_*.png ${DESTDIR}${PREFIX}/share
|
|
|
|
cp img/avatars/* ${DESTDIR}/usr/share/${APP}/avatars
|
|
|
|
cp src/* ${DESTDIR}${PREFIX}/bin
|
|
|
|
cp src/${APP}-mesh-batman ${DESTDIR}${PREFIX}/bin/batman
|
2018-01-12 23:18:23 +01:00
|
|
|
cp src/${APP}-mesh-bmx6 ${DESTDIR}${PREFIX}/bin/bmx
|
2016-09-27 23:45:59 +02:00
|
|
|
cp src/${APP}-backup-local ${DESTDIR}${PREFIX}/bin/backup
|
|
|
|
cp src/${APP}-backup-local ${DESTDIR}${PREFIX}/bin/backup2friends
|
|
|
|
cp src/${APP}-restore-local ${DESTDIR}${PREFIX}/bin/restore
|
|
|
|
cp src/${APP}-restore-remote ${DESTDIR}${PREFIX}/bin/restorefromfriend
|
2016-07-06 21:39:47 +02:00
|
|
|
rm -f ${DESTDIR}/usr/share/${APP}/base/*
|
|
|
|
rm -f ${DESTDIR}/usr/share/${APP}/apps/*
|
|
|
|
rm -f ${DESTDIR}/usr/share/${APP}/utils/*
|
2016-07-06 21:31:52 +02:00
|
|
|
mv ${DESTDIR}${PREFIX}/bin/${APP}-base-* ${DESTDIR}/usr/share/${APP}/base
|
2016-07-06 21:06:57 +02:00
|
|
|
mv ${DESTDIR}${PREFIX}/bin/${APP}-app-* ${DESTDIR}/usr/share/${APP}/apps
|
2016-07-06 21:27:18 +02:00
|
|
|
mv ${DESTDIR}${PREFIX}/bin/${APP}-utils-* ${DESTDIR}/usr/share/${APP}/utils
|
2015-01-16 22:14:53 +01:00
|
|
|
mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1
|
2016-09-27 23:45:59 +02:00
|
|
|
cp man/*.1.gz ${DESTDIR}${PREFIX}/share/man/man1
|
|
|
|
cp man/${APP}-backup-local.1.gz ${DESTDIR}${PREFIX}/share/man/man1/backup.1.gz
|
|
|
|
cp man/${APP}-restore-local.1.gz ${DESTDIR}${PREFIX}/share/man/man1/restore.1.gz
|
2016-11-29 22:53:20 +01:00
|
|
|
chown -R root: /usr/share/${APP}
|
2016-11-29 22:52:12 +01:00
|
|
|
chmod -R +r /usr/share/${APP}
|
2016-10-01 10:55:25 +02:00
|
|
|
# bash -c "./translate install"
|
2017-06-23 11:35:58 +02:00
|
|
|
/usr/local/bin/${APP}-prepare-scripts
|
2015-01-16 22:14:53 +01:00
|
|
|
uninstall:
|
2016-07-28 22:02:34 +02:00
|
|
|
rm -f ${PREFIX}/share/${APP}_*.png
|
2015-12-09 09:29:30 +01:00
|
|
|
rm -f ${PREFIX}/share/man/man1/backup.1.gz
|
|
|
|
rm -f ${PREFIX}/share/man/man1/restore.1.gz
|
2015-11-22 21:38:26 +01:00
|
|
|
rm -f ${PREFIX}/share/man/man1/${APP}*.1.gz
|
2015-01-16 22:14:53 +01:00
|
|
|
rm -rf ${PREFIX}/share/${APP}
|
2016-07-06 21:31:52 +02:00
|
|
|
rm -rf /usr/share/${APP}
|
2015-11-22 21:38:26 +01:00
|
|
|
rm -f ${PREFIX}/bin/${APP}*
|
2016-09-11 14:33:25 +02:00
|
|
|
rm -f ${PREFIX}/bin/meshavahi
|
2015-12-08 12:40:41 +01:00
|
|
|
rm -f ${PREFIX}/bin/backup
|
2015-12-08 15:56:57 +01:00
|
|
|
rm -f ${PREFIX}/bin/backup2friends
|
2015-12-08 13:29:01 +01:00
|
|
|
rm -f ${PREFIX}/bin/restore
|
2015-12-08 16:50:34 +01:00
|
|
|
rm -f ${PREFIX}/bin/restorefromfriend
|
2016-05-28 19:58:09 +02:00
|
|
|
rm -f ${PREFIX}/bin/batman
|
2018-01-12 23:18:23 +01:00
|
|
|
rm -f ${PREFIX}/bin/bmx
|
2016-04-19 12:21:35 +02:00
|
|
|
rm -rf /etc/${APP}
|
2017-06-23 11:35:58 +02:00
|
|
|
rm -f ${PREFIX}/bin/control
|
|
|
|
rm -f ${PREFIX}/bin/controluser
|
2017-06-23 11:53:25 +02:00
|
|
|
rm -f ${PREFIX}/bin/addremove
|
2015-12-01 15:40:29 +01:00
|
|
|
bash -c "./translate uninstall"
|
2015-01-16 22:14:53 +01:00
|
|
|
clean:
|
2016-07-24 15:43:26 +02:00
|
|
|
rm -f \#* \.#* debian/*.substvars debian/*.log src/*~
|
2015-01-16 22:14:53 +01:00
|
|
|
rm -fr deb.* debian/${APP}
|
|
|
|
rm -f ../${APP}*.deb ../${APP}*.changes ../${APP}*.asc ../${APP}*.dsc
|