]> Cypherpunks.ru repositories - goircd.git/blob - GNUmakefile
add service && debian package
[goircd.git] / GNUmakefile
1 VERSION = $(shell git describe --tags)
2 BUILD_TMP?=.rpm_tmp
3
4 include common.mk
5
6 .PHONY: deb
7 deb:
8         rm -rf ${BUILD_TMP}
9         mkdir -p ${BUILD_TMP}/usr/local/bin/
10         mkdir -p ${BUILD_TMP}/var/lib/goircd/history
11         mkdir -p ${BUILD_TMP}/etc/systemd/system/
12         cp goircd ${BUILD_TMP}/usr/local/bin/
13         cp startup/goircd.service ${BUILD_TMP}/etc/systemd/system/
14         fpm -s dir -t deb -n goircd -v ${VERSION}\
15         -m mengzhuo1203@gmail.com \
16         --deb-compression=bzip2 \
17         --verbose \
18         -d logrotate\
19         -C ${BUILD_TMP}
20