Browse code

Add haproxy package

Change-Id: I4fa088452f1a0ac0d84b5ed414de318a10d6ada1

Vinay Kulkarni authored on 2015/10/03 02:37:58
Showing 2 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,57 @@
0
+Summary:        A fast, reliable HA, load balancing, and proxy solution.
1
+Name:           haproxy
2
+Version:        1.5.14
3
+Release:        1%{?dist}
4
+License:        GPL
5
+URL:            http://www.haproxy.org
6
+Group:          Applications/System
7
+Vendor:         VMware, Inc.
8
+Distribution:   Photon
9
+Source0:        http://www.haproxy.org/download/1.5/src/%{name}-%{version}.tar.gz
10
+%define sha1 haproxy=159f5beb8fdc6b8059ae51b53dc935d91c0fb51f
11
+BuildRequires:  openssl-devel
12
+BuildRequires:  pcre-devel
13
+BuildRequires:  pkg-config
14
+BuildRequires:  zlib-devel
15
+
16
+%description
17
+HAProxy is a fast and reliable solution offering high availability, load
18
+balancing, and proxying for TCP and HTTP-based applications. It is suitable
19
+for very high traffic web-sites.
20
+
21
+%package        doc
22
+Summary:        Documentation for haproxy
23
+%description    doc
24
+It contains the documentation and manpages for haproxy package.
25
+Requires:       %{name} = %{version}-%{release}
26
+
27
+%prep
28
+%setup -q
29
+
30
+%build
31
+make %{?_smp_mflags} TARGET=linux2628 USE_PCRE=1 USE_OPENSSL=1 \
32
+        USE_GETADDRINFO=1 USE_ZLIB=1
33
+make %{?_smp_mflags} -C contrib/systemd
34
+sed -i s/"local\/"/""/g contrib/systemd/haproxy.service
35
+
36
+%install
37
+[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
38
+make DESTDIR=%{buildroot} PREFIX=%{_prefix} DOCDIR=%{_docdir}/haproxy install
39
+install -vDm755 contrib/systemd/haproxy.service \
40
+       %{buildroot}/usr/lib/systemd/system/haproxy.service
41
+
42
+%files
43
+%defattr(-,root,root)
44
+%{_sbindir}/haproxy
45
+%{_sbindir}/haproxy-systemd-wrapper
46
+%{_libdir}/systemd/system/haproxy.service
47
+
48
+%files doc
49
+%defattr(-,root,root,-)
50
+%{_docdir}/haproxy/*
51
+%{_mandir}/*
52
+
53
+%changelog
54
+*       Thu Oct 01 2015 Vinay Kulkarni <kulkarniv@vmware.com> 1.5.14-1
55
+-       Add haproxy v1.5 package.
56
+
... ...
@@ -27,7 +27,7 @@
27 27
                 "nss-altfiles", "apache-maven", "subversion", "mesos", "python3", "python3-libs", "python3-devel", "python3-tools", "fakeroot-ng", "ctags",
28 28
                 "libtirpc", "libtirpc-devel", "lsof", "nfs-utils", "cve-check-tool", "flannel", "rpm-build", "dkms", "openssl-perl", "xinetd", "tftp", "tftp-server",
29 29
                 "audit","audit-devel","libcap-ng","libcap-ng-devel","tcp_wrappers","tcp_wrappers-devel", "apr-util-devel", "apr-util-ldap", 
30
-                "apr-util-pgsql", "apr-util-sqlite","openjre", "sshpass", "openjdk-src", "openjdk-sample", "openjdk-doc", "e2fsprogs-devel"]
30
+                "apr-util-pgsql", "apr-util-sqlite","openjre", "sshpass", "openjdk-src", "openjdk-sample", "openjdk-doc", "e2fsprogs-devel", "haproxy"]
31 31
 }
32 32
 
33 33