| 1 |
diff --git a/contrib/Makefile.in b/contrib/Makefile.in |
| 2 |
index 72e4d4a9..62415152 100644 |
| 3 |
--- a/contrib/Makefile.in |
| 4 |
+++ b/contrib/Makefile.in |
| 5 |
@@ -84,52 +84,3 @@ $(CGI_O): $(CGI_C) |
| 6 |
|
| 7 |
%.cgi : %.c |
| 8 |
$(CC) $(CFLAGS) $(LDFLAGS) $< $(CGI_O) -o $@ |
| 9 |
- |
| 10 |
-############################################################################## |
| 11 |
-# making similiar EPEL rpm for Fedora/RHEL/CentOS |
| 12 |
- |
| 13 |
-ifneq ("$(wildcard /etc/redhat-release)","") |
| 14 |
- |
| 15 |
-ARCH ?= $(shell uname -m) |
| 16 |
-ifeq ($(ARCH),x86_64) |
| 17 |
-RPM_ARCH := x86_64 |
| 18 |
-else |
| 19 |
- ifeq ($(ARCH),i686) |
| 20 |
-RPM_ARCH := i386 |
| 21 |
- else |
| 22 |
- ifeq ($(ARCH),aarch64) |
| 23 |
-RPM_ARCH := aarch64 |
| 24 |
- else |
| 25 |
-$(error Unknown arch "$(ARCH)".) |
| 26 |
- endif |
| 27 |
- endif |
| 28 |
-endif |
| 29 |
- |
| 30 |
-# Create our own tarball and put ino rpmbuild/SOURCES |
| 31 |
-localsrc-rpm: |
| 32 |
- # create nagios tar ball. |
| 33 |
- @(cd ..;rm -f nagios-@VERSION@) |
| 34 |
- @(cd ..;ln -s . nagios-@VERSION@) |
| 35 |
- @(cd ..;tar zhcf nagios-@[email protected] --exclude nagios-@VERSION@/nagios-@[email protected] --exclude nagios-@VERSION@/nagios-@VERSION@ --exclude RCS --exclude CVS --exclude build-* --exclude *~ --exclude .git* nagios-@VERSION@/) |
| 36 |
- @(cd ..;rm -f nagios-@VERSION@) |
| 37 |
- # build the rpm using rpmbuild from ./rmbuild as topdir |
| 38 |
- @rm -rf rpmbuild && mkdir -p ./rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} |
| 39 |
- @cp ../nagios-@[email protected] rpmbuild/SOURCES/nagios-@[email protected] |
| 40 |
- @cp epel-patches/* ./rpmbuild/SOURCES |
| 41 |
- @rpmbuild -ba --define "_topdir ${PWD}/rpmbuild" epel-nagios.spec |
| 42 |
- @cp rpmbuild/RPMS/$(RPM_ARCH)/*.rpm . |
| 43 |
- @cp rpmbuild/SRPMS/*.src.rpm . |
| 44 |
- @ls -l *.rpm |
| 45 |
- |
| 46 |
-# tarball from https://github.com/NagiosEnterprises/nagioscore/releases/download/nagios-%{version}/nagios-%{version}.tar.gz |
| 47 |
-rpm: init-epelrpm build-epelrpm |
| 48 |
- @mv rpmbuild/RPMS/$(RPM_ARCH)/*.rpm . |
| 49 |
- @ls -l *.rpm |
| 50 |
-init-epelrpm: |
| 51 |
- # build the rpm using rpmbuild from ./rmbuild as topdir |
| 52 |
- @rm -rf ./rpmbuild && mkdir -p ./rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} |
| 53 |
- @spectool -C ./rpmbuild/SOURCES -g epel-nagios.spec |
| 54 |
- @cp epel-patches/* ./rpmbuild/SOURCES |
| 55 |
-build-epelrpm: |
| 56 |
- @rpmbuild -ba --define "_topdir ${PWD}/rpmbuild" epel-nagios.spec |
| 57 |
-endif |