forked from gdestuynder/ad-ldap-connector-rpm
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e663586
commit cd42129
Showing
3 changed files
with
5,976 additions
and
4,316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
#@maintainer [email protected] | ||
#@update 2016-08-02 | ||
#@update 2016-10-20 | ||
|
||
# Required RPM packaes: | ||
# fpm | ||
# rpm-build | ||
# mono-devel | ||
# nodejs | ||
|
||
#If you change the PKGVER ensure the module list in npm_modules.sha256sum | ||
#To regenerate it: find ad-ldap-connector-2.28.0/node_modules/ -type f -exec sha256sum {} \; > npm_modules.sha256sum for example (you can also do this for single modules instead) | ||
#If you change the PKGVER ensure the module list in npm_modules.sha256sum is accurate | ||
|
||
#This is the ad-ldap-connector version | ||
PKGVER:=2.28.0 | ||
PKGVER:= 3.0.1 | ||
#This is the packaging sub-release version | ||
PKGREL:=3 | ||
PKGREL:= 1 | ||
PKGNAME:=ad-ldap-connector | ||
PKGPATH:=https://github.com/auth0/ad-ldap-connector/archive/ | ||
PKGSHA256:=8a5fb7582737386000885a1d210632dc8a6fa0104e1d5f5efa5d1c69010ce4dc | ||
PKGSHA256:=8300ef10a3931606961df619f8de4537e4e9fa6f78965114d8353e3f1a60575b | ||
NPMS=npm_modules.sha256sum | ||
|
||
PKGTARBALL:=v$(PKGVER).tar.gz | ||
|
@@ -41,6 +40,7 @@ fpm: extract npm_verify | |
--before-install pre-install.sh \ | ||
--config-files opt/$(PKGNAME)/environ \ | ||
--iteration $(PKGREL) \ | ||
--exclude opt/$(PKGNAME)/$(PKGNAME)-$(PKGVER) \ | ||
-n $(PKGNAME) -v $(PKGVER) -C target | ||
|
||
npm_download: extract | ||
|
@@ -49,6 +49,10 @@ npm_download: extract | |
npm_verify: npm_download | ||
cat $(NPMS) | sha256sum -c | ||
|
||
regenerate_sums: $(PKGTARBALL) | ||
@echo Generating NEW checksums... | ||
find $(PKGDIRNAME)/node_modules/ -type f -exec sha256sum {} \; > npm_modules.sha256sum | ||
|
||
extract: $(PKGDIRNAME) | ||
$(PKGDIRNAME): verify | ||
tar xvzf $(PKGTARBALL) | ||
|
Oops, something went wrong.