Skip to content

Commit

Permalink
Merge pull request #168 from racker/fixes/put-back-unified-deb
Browse files Browse the repository at this point in the history
Put back unified deb
  • Loading branch information
itzg committed Oct 11, 2017
2 parents d8ade14 + 52bc147 commit 8b5e039
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 17 deletions.
21 changes: 5 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ BIN_URL := https://github.com/racker/rackspace-monitoring-poller/releases/downlo
VENDOR := Rackspace US, Inc.
LICENSE := Apache v2

# Until CMC-1705 we'll treat the upstart flavor as the "official" package
PKG_DEB_UPSTART := ${BUILD_DIR}/${APP_NAME}_${GIT_TAG}-${TAG_DISTANCE}_${ARCH}.deb
# ...note this one has the "-systemd" qualifier on the version
PKG_DEB_SYSTEMD := ${BUILD_DIR}/${APP_NAME}_${GIT_TAG}-${TAG_DISTANCE}-systemd_${ARCH}.deb
PKG_DEB := ${BUILD_DIR}/${APP_NAME}_${GIT_TAG}-${TAG_DISTANCE}_${ARCH}.deb

# TODO: should poller get its own specific file?
APP_CFG := ${PKGDIR_ETC}/rackspace-monitoring-poller.cfg
Expand Down Expand Up @@ -85,13 +82,13 @@ package-upload-deb:
rclone copy ${DEB_REPO_DIR}/ rackspace:${CLOUDFILES_REPO_NAME}/debian

reprepro-deb:
${REPREPRO} -b ${DEB_REPO_DIR} includedeb cloudmonitoring ${PKG_DEB_UPSTART}
${REPREPRO} -b ${DEB_REPO_DIR} includedeb cloudmonitoring build/*.deb

package-deb: ${PKG_DEB_UPSTART} ${PKG_DEB_SYSTEMD}
package-deb: ${PKG_DEB}

package-deb-local: stage-deb-exe-local package-deb

${PKG_DEB_UPSTART} : ${DEB_BUILD_DIR}/${PKGDIR_BIN}/${EXE} $(addprefix ${DEB_BUILD_DIR}/,${DEB_ALL_FILES}) ${DEB_BUILD_DIR}
${PKG_DEB} : ${DEB_BUILD_DIR}/${PKGDIR_BIN}/${EXE} $(addprefix ${DEB_BUILD_DIR}/,${DEB_ALL_FILES}) ${DEB_BUILD_DIR}
rm -f $@
${FPM} -p $@ -s dir -t deb \
-n ${APP_NAME} --license "${LICENSE}" --vendor "${VENDOR}" \
Expand All @@ -100,16 +97,8 @@ ${PKG_DEB_UPSTART} : ${DEB_BUILD_DIR}/${PKGDIR_BIN}/${EXE} $(addprefix ${DEB_BUI
$(foreach c,${DEB_CONFIG_FILES},--config-files ${c}) \
--deb-default ${DEB_BUILD_DIR}/${UPSTART_DEFAULT} \
--deb-upstart ${DEB_BUILD_DIR}/${UPSTART_CONF} \
-C ${DEB_BUILD_DIR} ${PKGDIR_BIN}/${EXE} ${DEB_CONFIG_FILES}

${PKG_DEB_SYSTEMD} : ${DEB_BUILD_DIR}/${PKGDIR_BIN}/${EXE} $(addprefix ${DEB_BUILD_DIR}/,${DEB_ALL_FILES}) ${DEB_BUILD_DIR}
rm -f $@
${FPM} -p $@ -s dir -t deb \
-n ${APP_NAME} --license "${LICENSE}" --vendor "${VENDOR}" \
-v ${GIT_TAG} --iteration ${TAG_DISTANCE} \
$(foreach d,${OWNED_DIRS},--directories ${d}) \
$(foreach c,${DEB_CONFIG_FILES},--config-files ${c}) \
--deb-systemd ${DEB_BUILD_DIR}/${SYSTEMD_CONF} \
--no-deb-systemd-restart-after-upgrade \
-C ${DEB_BUILD_DIR} ${PKGDIR_BIN}/${EXE} ${DEB_CONFIG_FILES}

clean:
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const (
DefaultTimeoutRead = 10 * time.Second
DefaultTimeoutWrite = 10 * time.Second
DefaultTimeoutPrepareEnd = 60 * time.Second
DefaultTimeoutAuth = 10 * time.Second
DefaultTimeoutAuth = 30 * time.Second
DefaultAgentId = "-poller-"
DefaultReconnectMinBackoff = 25 * time.Second
DefaultReconnectMaxBackoff = 180 * time.Second
Expand Down
Empty file modified contrib/vms/provision.sh
100755 → 100644
Empty file.

0 comments on commit 8b5e039

Please sign in to comment.