X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=GNUmakefile;h=d8024b8ea4a038a47cf1420b4c9911aa835c2000;hb=7a081293793cbf329b964ce0de6338425609374f;hp=04d452db379cb8f86abee4604c34ba761c6b629d;hpb=e80115cf6921d4fc2d64b3b809c76a5019f82309;p=goircd.git diff --git a/GNUmakefile b/GNUmakefile index 04d452d..d8024b8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,3 +1,20 @@ VERSION = $(shell git describe --tags) +BUILD_TMP ?= .rpm_tmp +DEB_MAINTAINER ?= mengzhuo1203@gmail.com 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 $(DEB_MAINTAINER) \ + --deb-compression=bzip2 \ + --verbose \ + -d logrotate \ + -C ${BUILD_TMP}