Skip to content

Commit fc1a251

Browse files
committed
remove oraclelinux
1 parent f081333 commit fc1a251

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

Makefile.packaging

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ TARBALL_NAME := $(PACKAGE_PREFIX).tar.gz
1414

1515
DEB_DISTROS ?= ubuntu-plucky-25.04 ubuntu-noble-24.04 ubuntu-jammy-22.04 ubuntu-focal-20.04 debian-bookworm-12 debian-bullseye-11
1616
DEB_ARCHS ?= arm64 amd64
17-
RPM_DISTROS ?= oraclelinux-8-x86_64 oraclelinux-9-x86_64 suse-15-x86_64
17+
RPM_DISTROS ?= suse-15-x86_64
1818
RPM_ARCH := x86_64
1919
REDHAT_VERSIONS ?= redhatenterprise-8 redhatenterprise-9 redhatenterprise-10
2020
REDHAT_ARCHS ?= aarch64 x86_64
@@ -35,9 +35,8 @@ $(PACKAGES_DIR):
3535
@mkdir -p $(PACKAGES_DIR)/deb && mkdir -p $(PACKAGES_DIR)/rpm && mkdir -p $(PACKAGES_DIR)/apk
3636

3737
.PHONY: package
38-
package: gpg-key $(PACKAGES_DIR) #### Create final packages for all supported distros
38+
package: $(PACKAGES_DIR) #### Create final packages for all supported distros
3939
# Create deb packages
40-
4140
@for arch in $(DEB_ARCHS); do \
4241
GOWORK=off CGO_ENABLED=0 GOARCH=$${arch} GOOS=linux go build -pgo=auto -ldflags=${LDFLAGS} -o $(BINARY_PATH) $(PROJECT_DIR)/$(PROJECT_FILE); \
4342
for distro in $(DEB_DISTROS); do \
@@ -48,15 +47,12 @@ package: gpg-key $(PACKAGES_DIR) #### Create final packages for all supported di
4847
done; \
4948

5049
# Create rpm packages
51-
5250
@GOWORK=off CGO_ENABLED=0 GOARCH=amd64 GOOS=linux go build -pgo=auto -ldflags=${LDFLAGS} -o $(BINARY_PATH) $(PROJECT_DIR)/$(PROJECT_FILE)
5351
@for distro in $(RPM_DISTROS); do \
5452
rpm_distro=`echo $$distro | cut -d- -f 1`; \
5553
rpm_major=`echo $$distro | cut -d- -f 2`; \
5654
rpm_codename='na'; \
57-
if [ "$$rpm_distro" = "centos" ] || [ "$$rpm_distro" = "redhatenterprise" ]; then rpm_codename="el$$rpm_major"; \
58-
elif [ "$$rpm_distro" = "oraclelinux" ]; then rpm_codename="oraclelinux$$rpm_major"; \
59-
elif [ "$$rpm_distro" = "suse" ]; then rpm_codename="sles$$rpm_major"; \
55+
if [ "$$rpm_distro" = "suse" ]; then rpm_codename="sles$$rpm_major"; \
6056
fi; \
6157
if [ "$$rpm_codename" != "na" ]; then \
6258
VERSION=$(PACKAGE_VERSION) ARCH=amd64 nfpm pkg --config .nfpm.yaml --packager rpm --target $(PACKAGES_DIR)/rpm/${PACKAGE_PREFIX}-$(PACKAGE_VERSION).$${rpm_codename}.ngx.${RPM_ARCH}.rpm; \
@@ -105,7 +101,6 @@ package: gpg-key $(PACKAGES_DIR) #### Create final packages for all supported di
105101
rm -rf $(BINARY_PATH); \
106102
done; \
107103

108-
109104
# Package build complete
110105

111106
echo "DEB packages:"; \
@@ -114,6 +109,8 @@ package: gpg-key $(PACKAGES_DIR) #### Create final packages for all supported di
114109
find $(PACKAGES_DIR)/rpm ;\
115110
echo "APK packages:"; \
116111
find $(PACKAGES_DIR)/apk ;\
112+
113+
# Create tarball containing all packages
117114
cd $(PACKAGES_DIR) && tar -czvf "./$(TARBALL_NAME)" * && cd ../.. && cp "${PACKAGES_DIR}/$(TARBALL_NAME)"; \
118115

119116
.PHONY: gpg-key

0 commit comments

Comments
 (0)