-
Notifications
You must be signed in to change notification settings - Fork 102
/
Makefile.am
41 lines (33 loc) · 1.36 KB
/
Makefile.am
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
35
36
37
38
39
40
41
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
tests/
# See configure.ac for MASTERFILES_INSTALL_TARGETS.
nobase_dist_masterfiles_DATA = @MASTERFILES_INSTALL_TARGETS@
masterfilesdir=$(prefix)/masterfiles
EXTRA_DIST = README.md inventory/README.md lib/README.md CONTRIBUTING.md LICENSE CFVERSION modules/promises
# Do not reveal usernames of the buildslave
TAR_OPTIONS = --owner=0 --group=0
export TAR_OPTIONS
# Store the permissions properly in the tarball for acceptance tests to succeed
dist-hook:
find $(distdir) -name '*.cf*' | xargs chmod go-w
tar-package:
pkgdir=`mktemp -d` && export pkgdir && \
origdir=`pwd` && export origdir && \
umask 0022 && chmod 755 $$pkgdir && \
$(MAKE) prefix=$$pkgdir install && \
( cd $$pkgdir && \
find . -name '*.cf*' | xargs -n1 chmod go-w && \
tardir=. && $(am__tar) | \
GZIP=$(GZIP_ENV) gzip -c \
> "$$origdir"/$(PACKAGE)-$(VERSION)-$(RELEASE).pkg.tar.gz \
) ; \
[ x$$pkgdir != x ] && rm -rf $$pkgdir
clean-local:
rm -rf build
non-priv-install:
mkdir -p "$$HOME/.cfagent/bin"
ln -sf $$(command -v cf-promises) "$$HOME/.cfagent/bin"
mkdir -p "$$HOME/.cfagent/inputs/lib"
rsync -avz ./lib/ "$$HOME/.cfagent/inputs/lib/"
[ ! -s "$$HOME/.cfagent/inputs/promises.cf" ] && echo "bundle agent main { reports: 'Hello, CFEngine!'; }" > "$$HOME/.cfagent/inputs/promises.cf"