X-Git-Url: http://www.git.cypherpunks.ru/?p=goircd.git;a=blobdiff_plain;f=GNUmakefile;h=2447b914bed3b14f3a224ada0810d8796984057b;hp=04d452db379cb8f86abee4604c34ba761c6b629d;hb=7afceda9cb6352809a0a3123c6aae1234329088b;hpb=ec62152429f64a625d58c0ee5e914d62061d062a diff --git a/GNUmakefile b/GNUmakefile index 04d452d..2447b91 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,3 +1,20 @@ VERSION = $(shell git describe --tags) +BUILD_TMP?=.rpm_tmp include common.mk + +.PHONY: deb +deb: + rm -rf ${BUILD_TMP} + mkdir -p ${BUILD_TMP}/usr/local/bin/ + mkdir -p ${BUILD_TMP}/var/lib/goircd/history + mkdir -p ${BUILD_TMP}/etc/systemd/system/ + cp goircd ${BUILD_TMP}/usr/local/bin/ + cp startup/goircd.service ${BUILD_TMP}/etc/systemd/system/ + fpm -s dir -t deb -n goircd -v ${VERSION}\ + -m mengzhuo1203@gmail.com \ + --deb-compression=bzip2 \ + --verbose \ + -d logrotate\ + -C ${BUILD_TMP} +