X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=GNUmakefile;h=509c4f8d3d7cd04424ca9c3382b9ef279a9ecc23;hb=f76a36974a9102965479a528fc420a108fac4bda;hp=04d452db379cb8f86abee4604c34ba761c6b629d;hpb=e80115cf6921d4fc2d64b3b809c76a5019f82309;p=goircd.git diff --git a/GNUmakefile b/GNUmakefile index 04d452d..509c4f8 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/log/goircd + 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} +