-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
19 lines (16 loc) · 885 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CONFIG_PATH=/usr/local/etc
BINARY_PATH=/usr/local/sbin
configure:
sed "s|^CONFIG=.*|CONFIG='${CONFIG_PATH}'|g" ./znap.sh > ./znap.sh_install
sed "s|^CONFIG=.*|CONFIG='${CONFIG_PATH}'|g" ./znap-hourly.sh > ./znap-hourly.sh_install
sed "s|^CONFIG=.*|CONFIG='${CONFIG_PATH}'|g" ./znap-util.sh > ./znap-util.sh_install
sed "s|^CONFIG=.*|CONFIG='${CONFIG_PATH}'|g" ./znapsend.sh > ./znapsend.sh_install
install: configure
install -C -o root -g wheel -m 555 ./znap.sh_install ${BINARY_PATH}/znap.sh
install -C -o root -g wheel -m 555 ./znap-hourly.sh_install ${BINARY_PATH}/znap-hourly.sh
install -C -o root -g wheel -m 555 ./znap-util.sh_install ${BINARY_PATH}/znap-util.sh
install -C -o root -g wheel -m 555 ./znapsend.sh_install ${BINARY_PATH}/znapsend.sh
install -C -o root -g wheel -m 644 ./znap.conf ${CONFIG_PATH}
mkdir -p ${CONFIG_PATH}/znap.d
clean:
rm -f ./*_install