2015-10-06 07:59:13 +00:00
|
|
|
VERSION = $(shell git describe --tags)
|
2017-01-13 08:53:58 +00:00
|
|
|
BUILD_TMP ?= .rpm_tmp
|
|
|
|
DEB_MAINTAINER ?= mengzhuo1203@gmail.com
|
2015-10-06 07:59:13 +00:00
|
|
|
|
|
|
|
include common.mk
|
2017-01-12 08:57:19 +00:00
|
|
|
|
|
|
|
.PHONY: deb
|
|
|
|
deb:
|
|
|
|
rm -rf ${BUILD_TMP}
|
|
|
|
mkdir -p ${BUILD_TMP}/usr/local/bin/
|
2017-01-12 09:06:09 +00:00
|
|
|
mkdir -p ${BUILD_TMP}/var/log/goircd
|
2017-01-12 08:57:19 +00:00
|
|
|
mkdir -p ${BUILD_TMP}/etc/systemd/system/
|
|
|
|
cp goircd ${BUILD_TMP}/usr/local/bin/
|
|
|
|
cp startup/goircd.service ${BUILD_TMP}/etc/systemd/system/
|
2017-01-13 08:53:58 +00:00
|
|
|
fpm -s dir -t deb -n goircd -v ${VERSION} \
|
|
|
|
-m $(DEB_MAINTAINER) \
|
2017-01-12 08:57:19 +00:00
|
|
|
--deb-compression=bzip2 \
|
|
|
|
--verbose \
|
2017-01-13 08:53:58 +00:00
|
|
|
-d logrotate \
|
2017-01-12 08:57:19 +00:00
|
|
|
-C ${BUILD_TMP}
|