diff options
author | Viktar Siarheichyk <vics@fsfe.org> | 2018-11-13 16:42:05 +0300 |
---|---|---|
committer | Viktar Siarheichyk <vics@fsfe.org> | 2018-11-13 16:42:05 +0300 |
commit | 87477839bed7796fdb607627a4dee94fe8c07bc2 (patch) | |
tree | e218354a7cbfcc83956cde20e0bd95e4018a2274 /Makefile | |
parent | 4dcd63422d57d342048806515cc9d43919bc2c58 (diff) | |
download | viber-selinux-87477839bed7796fdb607627a4dee94fe8c07bc2.tar.gz viber-selinux-87477839bed7796fdb607627a4dee94fe8c07bc2.tar.xz viber-selinux-87477839bed7796fdb607627a4dee94fe8c07bc2.zip |
Boilerplate policy
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1b11d60 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +TARGET?=viber +MODULES?=${TARGET:=.pp.bz2} +SHAREDIR?=/usr/share + +all: ${TARGET:=.pp.bz2} + +%.pp.bz2: %.pp + @echo Compressing $^ -\> $@ + bzip2 -9 $^ + +%.pp: %.te + make -f ${SHAREDIR}/selinux/devel/Makefile $@ + +clean: + rm -f *~ *.tc *.pp *.pp.bz2 + rm -rf tmp *.tar.gz + +man: install-policy + sepolicy manpage --path . --domain ${TARGET}_t + +install-policy: all + semodule -i ${TARGET}.pp.bz2 + +install: man + install -D -m 644 ${TARGET}.pp.bz2 ${DESTDIR}${SHAREDIR}/selinux/packages/${TARGET}.pp.bz2 + install -D -m 644 ${TARGET}.if ${DESTDIR}${SHAREDIR}/selinux/devel/include/contrib/${TARGET}.if + install -D -m 644 ${TARGET}_selinux.8 ${DESTDIR}${SHAREDIR}/man/man8/ |