Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit cad265f

Browse files
committed
[Issue #413] packaging for Oracle Linux and Rhel
1 parent 0d50b5d commit cad265f

File tree

5 files changed

+202
-6
lines changed

5 files changed

+202
-6
lines changed

packaging/Makefile.centos

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,53 @@ build/centos_6_12:
2222
build/centos_6_13:
2323
$(call build_rpm,centos,6,,13,13.3)
2424
touch build/centos_6_13
25+
26+
# CENTOS 7
27+
build/centos_7_9.5:
28+
$(call build_rpm,centos,7,,9.5,9.5.25)
29+
touch build/centos_7_9.5
30+
31+
build/centos_7_9.6:
32+
$(call build_rpm,centos,7,,9.6,9.6.21)
33+
touch build/centos_7_9.6
34+
35+
build/centos_7_10:
36+
$(call build_rpm,centos,7,,10,10.16)
37+
touch build/centos_7_10
38+
39+
build/centos_7_11:
40+
$(call build_rpm,centos,7,,11,11.11)
41+
touch build/centos_7_11
42+
43+
build/centos_7_12:
44+
$(call build_rpm,centos,7,,12,12.6)
45+
touch build/centos_7_12
46+
47+
build/centos_7_13:
48+
$(call build_rpm,centos,7,,13,13.3)
49+
touch build/centos_7_13
50+
51+
# CENTOS 8
52+
build/centos_8_9.5:
53+
$(call build_rpm,centos,8,,9.5,9.5.25)
54+
touch build/centos_8_9.5
55+
56+
build/centos_8_9.6:
57+
$(call build_rpm,centos,8,,9.6,9.6.21)
58+
touch build/centos_8_9.6
59+
60+
build/centos_8_10:
61+
$(call build_rpm,centos,8,,10,10.16)
62+
touch build/centos_8_10
63+
64+
build/centos_8_11:
65+
$(call build_rpm,centos,8,,11,11.11)
66+
touch build/centos_8_11
67+
68+
build/centos_8_12:
69+
$(call build_rpm,centos,8,,12,12.6)
70+
touch build/centos_8_12
71+
72+
build/centos_8_13:
73+
$(call build_rpm,centos,8,,13,13.3)
74+
touch build/centos_8_13

packaging/Makefile.oraclelinux

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# ORACLE LINUX 6
2+
build/oraclelinux_6_9.5:
3+
$(call build_rpm,oraclelinux,6,,9.5,9.5.25)
4+
touch build/oraclelinux_6_9.5
5+
6+
build/oraclelinux_6_9.6:
7+
$(call build_rpm,oraclelinux,6,,9.6,9.6.21)
8+
touch build/oraclelinux_6_9.6
9+
10+
build/oraclelinux_6_10:
11+
$(call build_rpm,oraclelinux,6,,10,10.16)
12+
touch build/oraclelinux_6_10
13+
14+
build/oraclelinux_6_11:
15+
$(call build_rpm,oraclelinux,6,,11,11.11)
16+
touch build/oraclelinux_6_11
17+
18+
build/oraclelinux_6_12:
19+
$(call build_rpm,oraclelinux,6,,12,12.6)
20+
touch build/oraclelinux_6_12
21+
22+
build/oraclelinux_6_13:
23+
$(call build_rpm,oraclelinux,6,,13,13.3)
24+
touch build/oraclelinux_6_13
25+
26+
# ORACLE LINUX 7
27+
build/oraclelinux_7_9.5:
28+
$(call build_rpm,oraclelinux,7,,9.5,9.5.25)
29+
touch build/oraclelinux_7_9.5
30+
31+
build/oraclelinux_7_9.6:
32+
$(call build_rpm,oraclelinux,7,,9.6,9.6.21)
33+
touch build/oraclelinux_7_9.6
34+
35+
build/oraclelinux_7_10:
36+
$(call build_rpm,oraclelinux,7,,10,10.16)
37+
touch build/oraclelinux_7_10
38+
39+
build/oraclelinux_7_11:
40+
$(call build_rpm,oraclelinux,7,,11,11.11)
41+
touch build/oraclelinux_7_11
42+
43+
build/oraclelinux_7_12:
44+
$(call build_rpm,oraclelinux,7,,12,12.6)
45+
touch build/oraclelinux_7_12
46+
47+
build/oraclelinux_7_13:
48+
$(call build_rpm,oraclelinux,7,,13,13.3)
49+
touch build/oraclelinux_7_13
50+
51+
# ORACLE LINUX 8
52+
build/oraclelinux_8_9.5:
53+
$(call build_rpm,oraclelinux,8,,9.5,9.5.25)
54+
touch build/oraclelinux_8_9.5
55+
56+
build/oraclelinux_8_9.6:
57+
$(call build_rpm,oraclelinux,8,,9.6,9.6.21)
58+
touch build/oraclelinux_8_9.6
59+
60+
build/oraclelinux_8_10:
61+
$(call build_rpm,oraclelinux,8,,10,10.16)
62+
touch build/oraclelinux_8_10
63+
64+
build/oraclelinux_8_11:
65+
$(call build_rpm,oraclelinux,8,,11,11.11)
66+
touch build/oraclelinux_8_11
67+
68+
build/oraclelinux_8_12:
69+
$(call build_rpm,oraclelinux,8,,12,12.6)
70+
touch build/oraclelinux_8_12
71+
72+
build/oraclelinux_8_13:
73+
$(call build_rpm,oraclelinux,8,,13,13.3)
74+
touch build/oraclelinux_8_13

packaging/Makefile.rhel

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# RHEL 6
2+
build/rhel_6_9.5:
3+
$(call build_rpm,rhel,6,6Server,9.5,9.5.25)
4+
touch build/rhel_6_9.5
5+
6+
build/rhel_6_9.6:
7+
$(call build_rpm,rhel,6,6Server,9.6,9.6.21)
8+
touch build/rhel_6_9.6
9+
10+
build/rhel_6_10:
11+
$(call build_rpm,rhel,6,6Server,10,10.16)
12+
touch build/rhel_6_10
13+
14+
build/rhel_6_11:
15+
$(call build_rpm,rhel,6,6Server,11,11.11)
16+
touch build/rhel_6_11
17+
18+
build/rhel_6_12:
19+
$(call build_rpm,rhel,6,6Server,12,12.6)
20+
touch build/rhel_6_12
21+
22+
build/rhel_6_13:
23+
$(call build_rpm,rhel,6,6Server,13,13.3)
24+
touch build/rhel_6_13
25+
26+
# RHEL 7
27+
build/rhel_7_9.5:
28+
$(call build_rpm,rhel,7,7Server,9.5,9.5.25)
29+
touch build/rhel_7_9.5
30+
31+
build/rhel_7_9.6:
32+
$(call build_rpm,rhel,7,7Server,9.6,9.6.21)
33+
touch build/rhel_7_9.6
34+
35+
build/rhel_7_10:
36+
$(call build_rpm,rhel,7,7Server,10,10.16)
37+
touch build/rhel_7_10
38+
39+
build/rhel_7_11:
40+
$(call build_rpm,rhel,7,7Server,11,11.11)
41+
touch build/rhel_7_11
42+
43+
build/rhel_7_12:
44+
$(call build_rpm,rhel,7,7Server,12,12.6)
45+
touch build/rhel_7_12
46+
47+
build/rhel_7_13:
48+
$(call build_rpm,rhel,7,7Server,13,13.3)
49+
touch build/rhel_7_13
50+
51+
# RHEL 8
52+
build/rhel_8_9.5:
53+
$(call build_rpm,rhel,8,8Server,9.5,9.5.25)
54+
touch build/rhel_8_9.5
55+
56+
build/rhel_8_9.6:
57+
$(call build_rpm,rhel,8,8Server,9.6,9.6.21)
58+
touch build/rhel_8_9.6
59+
60+
build/rhel_8_10:
61+
$(call build_rpm,rhel,8,8Server,10,10.16)
62+
touch build/rhel_8_10
63+
64+
build/rhel_8_11:
65+
$(call build_rpm,rhel,8,8Server,11,11.11)
66+
touch build/rhel_8_11
67+
68+
build/rhel_8_12:
69+
$(call build_rpm,rhel,8,8Server,12,12.6)
70+
touch build/rhel_8_12
71+
72+
build/rhel_8_13:
73+
$(call build_rpm,rhel,8,8Server,13,13.3)
74+
touch build/rhel_8_13

packaging/scripts/deb.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ if [[ ${PBK_EDITION} == '' ]] ; then
4646
fi
4747

4848
cd /root/build/${PKG_NAME}_${PKG_VERSION}
49-
cp -av /app/in/packaging/specs/deb/pg_probackup/debian ./
49+
cp -av /app/in/specs/deb/pg_probackup/debian ./
5050
if [[ ${PBK_EDITION} == '' ]] ; then
5151
sed -i "s/@PKG_NAME@/${PKG_NAME}/g" debian/changelog
5252
sed -i "s/@PKG_VERSION@/${PKG_VERSION}/g" debian/changelog
@@ -114,7 +114,7 @@ if [[ ${PBK_EDITION} == '' ]] ; then
114114
cd /root/build/${PKG_NAME}_${PKG_VERSION}
115115
tar -xf /root/build/dsc/${PKG_NAME}_${PKG_VERSION}.orig-postgresql${PG_TOC}.tar.bz2
116116
else
117-
tar -xf /app/in/packaging/tarballs/pgpro.tar.bz2 -C /root/build/dsc/
117+
tar -xf /app/in/tarballs/pgpro.tar.bz2 -C /root/build/dsc/
118118
cd /root/build/dsc/pgpro
119119

120120
PGPRO_TOC=$(echo ${PG_FULL_VERSION} | sed 's|\.|_|g')

packaging/scripts/rpm.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cd /root/build
3131
rpm --rebuilddb && yum clean all
3232

3333
# Copy rpmbuild
34-
cp -rv /app/in/packaging/specs/rpm/rpmbuild /root/
34+
cp -rv /app/in/specs/rpm/rpmbuild /root/
3535

3636
# download pbk
3737
git clone $PKG_URL pg_probackup-${PKG_VERSION}
@@ -66,9 +66,7 @@ if [[ ${PBK_EDITION} == '' ]] ; then
6666
then sed -i "s/@SHORT_CODENAME@/Oracle/" pg_probackup.repo
6767
fi
6868
else
69-
# cp /app/tarballs/postgrespro-${EDITION}-${PG_FULL_VERSION}.tar.bz2 /root/rpmbuild/SOURCES/
70-
# cp /app/in/packaging/tarballs/pgpro.tar.bz2
71-
tar -xf /app/in/packaging/tarballs/pgpro.tar.bz2 -C /root/rpmbuild/SOURCES/
69+
tar -xf /app/in/tarballs/pgpro.tar.bz2 -C /root/rpmbuild/SOURCES/
7270
cd /root/rpmbuild/SOURCES/pgpro
7371

7472
PGPRO_TOC=$(echo ${PG_FULL_VERSION} | sed 's|\.|_|g')

0 commit comments

Comments
 (0)