Update build. Allow less "building" to create all the packages.

This commit is contained in:
David Newhall II
2019-05-31 00:48:55 -07:00
parent 06694a4704
commit b4bf6a44c0
3 changed files with 32 additions and 20 deletions
+5 -1
View File
@@ -28,7 +28,7 @@ rm -rf package_build
mkdir -p package_build${BINFIX}/bin package_build${PREFIX}/etc/${BINARY} package_build${BINFIX}/share/man/man1
# Copy the binary, config file and man page into the env.
cp ${BINARY} package_build${BINFIX}/bin
cp ${BINARY}.linux package_build${BINFIX}/bin/${BINARY}
cp *.1.gz package_build${BINFIX}/share/man/man1
cp examples/up.conf.example package_build${PREFIX}/etc/${BINARY}/up.conf
@@ -42,4 +42,8 @@ fpm -s dir -t ${OUTPUT} \
--version ${VERSION} \
--after-install scripts/after-install.sh \
--before-remove scripts/before-remove.sh \
--license MIT \
--url 'https://github.com/davidnewhall/unifi-poller' \
--maintainer 'david at sleepers dot pro' \
--description 'This daemon polls a Unifi controller at a short interval and stores the collected metric data in an Influx Database.' \
--chdir package_build
+5 -1
View File
@@ -24,7 +24,7 @@ mkdir -p package_build${BINFIX}/bin package_build${PREFIX}/etc/${BINARY} package
mkdir -p package_build${PREFIX}/var/log
# Copy the binary, config file and man page into the env.
cp ${BINARY} package_build${BINFIX}/bin
cp ${BINARY}.macos package_build${BINFIX}/bin/${BINARY}
cp *.1.gz package_build${BINFIX}/share/man/man1
cp examples/up.conf.example package_build${PREFIX}/etc/${BINARY}/
@@ -38,4 +38,8 @@ fpm -s dir -t osxpkg \
--version ${VERSION} \
--after-install scripts/after-install-osx.sh \
--osxpkg-identifier-prefix com.github.davidnewhall \
--license MIT \
--maintainer 'david at sleepers dot pro' \
--url 'https://github.com/davidnewhall/unifi-poller' \
--description 'This daemon polls a Unifi controller at a short interval and stores the collected metric data in an Influx Database.' \
--chdir package_build