-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
executable file
·34 lines (30 loc) · 2.15 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#! /bin/bash
readonly NAME=aide-watch
readonly VERSION=0.4
if ! [ -f aide-watch ]; then
echo "No aide-watch -- wrong directory?" 1>&2
exit 1
fi
/bin/rm -rf ./tree
/bin/mkdir -p tree/usr/local/share/aide-watch tree/usr/local/bin tree/var/db/aide-watch
/usr/bin/install -m 0555 aide-watch tree/usr/local/bin/aide-watch
/usr/bin/install -m 0444 aide-watch.cron tree/usr/local/share/aide-watch/aide-watch.cron
/usr/bin/install -m 0644 ssh_config tree/var/db/aide-watch/ssh_config
fpm -s dir -t rpm -C tree -f \
--name $NAME \
--version $VERSION \
--iteration 1 \
--architecture all \
--license BSE \
--category 'Security Tools' \
--depends bash \
--depends 'aide >= 0.15' \
--depends 'mailx >= 12.4-7' \
--provides "${NAME} = ${VERSION}" \
--rpm-autoreqprov \
--directories /var/db/aide-watch \
--directories /usr/local/share/aide-watch \
--config-files /var/db/aide-watch/ssh_config \
--description 'The aide-watch package provides a script to fetch a remote aide DB and locally
compare to the previous DB. Transfer is via ssh and controlled by keys.' \
.