- Test 1 - Setting a
PREFIX
:
root@docker:/recap# make PREFIX=/tmp/other/usr install
Installing scripts...
Installing man pages...
Installing configuration...
Installing cron job...
Installing docs...
Creating log directories...
root@docker:/recap# find /tmp/other/usr/
/tmp/other/usr/
/tmp/other/usr/sbin
/tmp/other/usr/sbin/recap
/tmp/other/usr/sbin/recaplog
/tmp/other/usr/sbin/recaptool
/tmp/other/usr/share
/tmp/other/usr/share/man
/tmp/other/usr/share/man/man5
/tmp/other/usr/share/man/man5/recap.5
/tmp/other/usr/share/man/man8
/tmp/other/usr/share/man/man8/recap.8
/tmp/other/usr/share/man/man8/recaplog.8
/tmp/other/usr/share/man/man8/recaptool.8
/tmp/other/usr/share/doc
/tmp/other/usr/share/doc/recap
/tmp/other/usr/share/doc/recap/CHANGELOG
/tmp/other/usr/share/doc/recap/README.md
/tmp/other/usr/share/doc/recap/COPYING
root@docker:/recap# grep \/recap /etc/cron.d/recap
@reboot root /tmp/other/usr/sbin/recap -B
#0 2 * * * root /tmp/other/usr/sbin/recap
#0 2,14 * * * root /tmp/other/usr/sbin/recap
#0 2,8,14,20 * * * root /tmp/other/usr/sbin/recap
#0 * * * * root /tmp/other/usr/sbin/recap
#*/30 * * * * root /tmp/other/usr/sbin/recap
*/10 * * * * root /tmp/other/usr/sbin/recap
#*/5 * * * * root /tmp/other/usr/sbin/recap
0 1 * * * root /tmp/other/usr/sbin/recaplog
- Test 2 - Setting
DESTDIR
and the PREFIX
to /usr
this is similar to what the package build tools do (deb, rpm, pkgbuild)
root@docker:/recap# make DESTDIR=/tmp/testing PREFIX=/usr install
Installing scripts...
Installing man pages...
Installing configuration...
Installing cron job...
Installing docs...
Creating log directories...
root@docker:/recap# find /tmp/testing
/tmp/testing
/tmp/testing/usr
/tmp/testing/usr/sbin
/tmp/testing/usr/sbin/recap
/tmp/testing/usr/sbin/recaplog
/tmp/testing/usr/sbin/recaptool
/tmp/testing/usr/share
/tmp/testing/usr/share/man
/tmp/testing/usr/share/man/man5
/tmp/testing/usr/share/man/man5/recap.5
/tmp/testing/usr/share/man/man8
/tmp/testing/usr/share/man/man8/recap.8
/tmp/testing/usr/share/man/man8/recaplog.8
/tmp/testing/usr/share/man/man8/recaptool.8
/tmp/testing/usr/share/doc
/tmp/testing/usr/share/doc/recap
/tmp/testing/usr/share/doc/recap/CHANGELOG
/tmp/testing/usr/share/doc/recap/README.md
/tmp/testing/usr/share/doc/recap/COPYING
/tmp/testing/etc
/tmp/testing/etc/cron.d
/tmp/testing/etc/cron.d/recap
/tmp/testing/etc/recap
/tmp/testing/var
/tmp/testing/var/log
/tmp/testing/var/log/recap
/tmp/testing/var/log/recap/backups
/tmp/testing/var/log/recap/snapshots
root@docker:/recap# grep \/recap /tmp/testing/etc/cron.d/recap
@reboot root /usr/sbin/recap -B
#0 2 * * * root /usr/sbin/recap
#0 2,14 * * * root /usr/sbin/recap
#0 2,8,14,20 * * * root /usr/sbin/recap
#0 * * * * root /usr/sbin/recap
#*/30 * * * * root /usr/sbin/recap
*/10 * * * * root /usr/sbin/recap
#*/5 * * * * root /usr/sbin/recap
0 1 * * * root /usr/sbin/recaplog
- Test 3 - The direct install on
/
using /usr
root@docker:/recap# make DESTDIR=/ PREFIX=/usr install
Installing scripts...
Installing man pages...
Installing configuration...
Installing cron job...
Installing docs...
Creating log directories...
root@docker:/recap# which recap
/usr/sbin/recap
root@docker:/recap# grep \/recap /etc/cron.d/recap
@reboot root /usr/sbin/recap -B
#0 2 * * * root /usr/sbin/recap
#0 2,14 * * * root /usr/sbin/recap
#0 2,8,14,20 * * * root /usr/sbin/recap
#0 * * * * root /usr/sbin/recap
#*/30 * * * * root /usr/sbin/recap
*/10 * * * * root /usr/sbin/recap
#*/5 * * * * root /usr/sbin/recap
0 1 * * * root /usr/sbin/recaplog
- Test 4 - Using all defaults
root@docker:/recap# make install
Installing scripts...
Installing man pages...
Installing configuration...
Installing cron job...
Installing docs...
Creating log directories...
root@docker:/recap# which recap
/usr/local/sbin/recap
root@docker:/recap# grep \/recap /etc/cron.d/recap
@reboot root /usr/local/sbin/recap -B
#0 2 * * * root /usr/local/sbin/recap
#0 2,14 * * * root /usr/local/sbin/recap
#0 2,8,14,20 * * * root /usr/local/sbin/recap
#0 * * * * root /usr/local/sbin/recap
#*/30 * * * * root /usr/local/sbin/recap
*/10 * * * * root /usr/local/sbin/recap
#*/5 * * * * root /usr/local/sbin/recap
0 1 * * * root /usr/local/sbin/recaplog