ngompa / rpms / haproxy

Forked from rpms/haproxy 4 years ago
Clone

Blame SPECS/haproxy.spec

5cd88c
%define haproxy_user    haproxy
5cd88c
%define haproxy_group   %{haproxy_user}
5cd88c
%define haproxy_home    %{_localstatedir}/lib/haproxy
5cd88c
%define haproxy_confdir %{_sysconfdir}/haproxy
5cd88c
%define haproxy_datadir %{_datadir}/haproxy
5cd88c
5cd88c
%global _hardened_build 1
5cd88c
5cd88c
Name:           haproxy
5cd88c
Version:        1.5.18
5cd88c
Release:        7%{?dist}
5cd88c
Summary:        TCP/HTTP proxy and load balancer for high availability environments
5cd88c
5cd88c
Group:          System Environment/Daemons
5cd88c
License:        GPLv2+
5cd88c
5cd88c
URL:            http://www.haproxy.org/
5cd88c
Source0:        http://www.haproxy.org/download/1.5/src/haproxy-%{version}.tar.gz
5cd88c
Source1:        %{name}.service
5cd88c
Source2:        %{name}.cfg
5cd88c
Source3:        %{name}.logrotate
5cd88c
Source4:        %{name}.sysconfig
5cd88c
Source5:        halog.1
5cd88c
5cd88c
Patch0:         halog-unused-variables.patch
5cd88c
Patch1:         iprange-return-type.patch
5cd88c
Patch2:         haproxy-tcp-user-timeout.patch
5cd88c
Patch3:         haproxy-systemd-wrapper-exit-code.patch
5cd88c
5cd88c
BuildRequires:  pcre-devel
5cd88c
BuildRequires:  zlib-devel
5cd88c
BuildRequires:  openssl-devel
5cd88c
BuildRequires:  systemd-units
5cd88c
5cd88c
Requires(pre):      shadow-utils
5cd88c
Requires(post):     systemd
5cd88c
Requires(preun):    systemd
5cd88c
Requires(postun):   systemd
5cd88c
5cd88c
%description
5cd88c
HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high
5cd88c
availability environments. Indeed, it can:
5cd88c
 - route HTTP requests depending on statically assigned cookies
5cd88c
 - spread load among several servers while assuring server persistence
5cd88c
   through the use of HTTP cookies
5cd88c
 - switch to backup servers in the event a main server fails
5cd88c
 - accept connections to special ports dedicated to service monitoring
5cd88c
 - stop accepting connections without breaking existing ones
5cd88c
 - add, modify, and delete HTTP headers in both directions
5cd88c
 - block requests matching particular patterns
5cd88c
 - report detailed status to authenticated users from a URI
5cd88c
   intercepted by the application
5cd88c
5cd88c
%prep
5cd88c
%setup -q
5cd88c
%patch0 -p0
5cd88c
%patch1 -p0
5cd88c
%patch2 -p1
5cd88c
%patch3 -p1
5cd88c
5cd88c
%build
5cd88c
regparm_opts=
5cd88c
%ifarch %ix86 x86_64
5cd88c
regparm_opts="USE_REGPARM=1"
5cd88c
%endif
5cd88c
5cd88c
%{__make} %{?_smp_mflags} CPU="generic" TARGET="linux2628" USE_OPENSSL=1 USE_PCRE=1 USE_ZLIB=1 ${regparm_opts} ADDINC="%{optflags}" USE_LINUX_TPROXY=1 ADDLIB="%{__global_ldflags}" DEFINE=-DTCP_USER_TIMEOUT=18
5cd88c
5cd88c
pushd contrib/halog
5cd88c
%{__make} halog OPTIMIZE="%{optflags}"
5cd88c
popd
5cd88c
5cd88c
pushd contrib/iprange
5cd88c
%{__make} iprange OPTIMIZE="%{optflags}"
5cd88c
popd
5cd88c
5cd88c
%install
5cd88c
%{__make} install-bin DESTDIR=%{buildroot} PREFIX=%{_prefix} TARGET="linux2628"
5cd88c
%{__make} install-man DESTDIR=%{buildroot} PREFIX=%{_prefix}
5cd88c
5cd88c
%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
5cd88c
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg
5cd88c
%{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
5cd88c
%{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
5cd88c
%{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/halog.1
5cd88c
%{__install} -d -m 0755 %{buildroot}%{haproxy_home}
5cd88c
%{__install} -d -m 0755 %{buildroot}%{haproxy_datadir}
5cd88c
%{__install} -d -m 0755 %{buildroot}%{_bindir}
5cd88c
%{__install} -p -m 0755 ./contrib/halog/halog %{buildroot}%{_bindir}/halog
5cd88c
%{__install} -p -m 0755 ./contrib/iprange/iprange %{buildroot}%{_bindir}/iprange
5cd88c
%{__install} -p -m 0644 ./examples/errorfiles/* %{buildroot}%{haproxy_datadir}
5cd88c
5cd88c
for httpfile in $(find ./examples/errorfiles/ -type f)
5cd88c
do
5cd88c
    %{__install} -p -m 0644 $httpfile %{buildroot}%{haproxy_datadir}
5cd88c
done
5cd88c
5cd88c
%{__rm} -rf ./examples/errorfiles/
5cd88c
5cd88c
find ./examples/* -type f ! -name "*.cfg" -exec %{__rm} -f "{}" \;
5cd88c
5cd88c
for textfile in $(find ./ -type f -name "*.txt" -o -name README)
5cd88c
do
5cd88c
    %{__mv} $textfile $textfile.old
5cd88c
    iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old
5cd88c
    %{__rm} -f $textfile.old
5cd88c
done
5cd88c
5cd88c
%pre
5cd88c
getent group %{haproxy_group} >/dev/null || groupadd -f -g 188 -r %{haproxy_group}
5cd88c
if ! getent passwd %{haproxy_user} >/dev/null ; then
5cd88c
    if ! getent passwd 188 >/dev/null ; then
5cd88c
        useradd -r -u 188 -g %{haproxy_group} -d %{haproxy_home} -s /sbin/nologin -c "haproxy" %{haproxy_user}
5cd88c
    else
5cd88c
        useradd -r -g %{haproxy_group} -d %{haproxy_home} -s /sbin/nologin -c "haproxy" %{haproxy_user}
5cd88c
    fi
5cd88c
fi
5cd88c
5cd88c
%post
5cd88c
%systemd_post %{name}.service
5cd88c
5cd88c
%preun
5cd88c
%systemd_preun %{name}.service
5cd88c
5cd88c
%postun
5cd88c
%systemd_postun_with_restart %{name}.service
5cd88c
5cd88c
%files
5cd88c
%defattr(-,root,root,-)
5cd88c
%doc doc/* examples/
5cd88c
%doc CHANGELOG LICENSE README ROADMAP VERSION
5cd88c
%dir %{haproxy_confdir}
5cd88c
%dir %{haproxy_datadir}
5cd88c
%{haproxy_datadir}/*
5cd88c
%config(noreplace) %{haproxy_confdir}/%{name}.cfg
5cd88c
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
5cd88c
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
5cd88c
%{_unitdir}/%{name}.service
5cd88c
%{_sbindir}/%{name}
5cd88c
%{_sbindir}/%{name}-systemd-wrapper
5cd88c
%{_bindir}/halog
5cd88c
%{_bindir}/iprange
5cd88c
%{_mandir}/man1/*
5cd88c
%attr(-,%{haproxy_user},%{haproxy_group}) %dir %{haproxy_home}
5cd88c
5cd88c
%changelog
5cd88c
* Thu Nov 30 2017 Ryan O'Hara <rohara@redhat.com> - 1.5.18-7
5cd88c
- Rebuild with openssl-1.0.2k (#1509139)
5cd88c
5cd88c
* Mon May 01 2017 Ryan O'Hara <rohara@redhat.com> - 1.5.18-6
5cd88c
- Use KillMode=mixed in systemd service file (#1444709)
5cd88c
5cd88c
* Thu Mar 16 2017 Ryan O'Hara <rohara@redhat.com> - 1.5.18-5
5cd88c
- Use soft-static allocation for haproxy UID/GID (#1386130)
5cd88c
5cd88c
* Wed Nov 16 2016 Ryan O'Hara <rohara@redhat.com> - 1.5.18-4
5cd88c
- Return correct exit codes from systemd-wrapper (#1391990)
5cd88c
5cd88c
* Tue Jun 21 2016 Ryan O'Hara <rohara@redhat.com> - 1.5.18-3
5cd88c
- Fix TCP user timeout patch for 1.5.18 release
5cd88c
5cd88c
* Thu Jun 16 2016 Ryan O'Hara <rohara@redhat.com> - 1.5.18-2
5cd88c
- Add TARGET to install-bin for haproxy-systemd-wrapper
5cd88c
5cd88c
* Wed Jun 15 2016 Ryan O'Hara <rohara@redhat.com> - 1.5.18-1
5cd88c
- Update to stable release 1.5.18 (#1344012)
5cd88c
5cd88c
* Tue Aug 25 2015 Ryan O'Hara <rohara@redhat.com> - 1.5.14-3
5cd88c
- Add EnvironmentFile to systemd service (#1191675)
5cd88c
5cd88c
* Mon Jul 06 2015 Ryan O'Hara <rohara@redhat.com> - 1.5.14-1
5cd88c
- Update to stable release 1.5.14 (CVE-2015-3281, #1212193)
5cd88c
5cd88c
* Wed Jun 24 2015 Ryan O'Hara <rohara@redhat.com> - 1.5.12-2
5cd88c
- Rebase TCP uset timeout patch for 1.5.12 release (#1212193)
5cd88c
5cd88c
* Tue Jun 23 2015 Ryan O'Hara <rohara@redhat.com> - 1.5.12-1
5cd88c
- Update to stable release 1.5.12 (#1212193)
5cd88c
5cd88c
* Thu May 21 2015 Ryan O'Hara <rohara@redhat.com> - 1.5.4-5
5cd88c
- Define TCP_USER_TIMEOUT at build time (#1190776)
5cd88c
5cd88c
* Wed Mar 04 2015 Ryan O'Hara <rohara@redhat.com> - 1.5.4-4
5cd88c
- Read sysconfig file for extra options (#1191675)
5cd88c
5cd88c
* Wed Mar 04 2015 Ryan O'Hara <rohara@redhat.com> - 1.5.4-3
5cd88c
- Add tcp-ut bind option to set TCP_USER_TIMEOUT (#1190776)
5cd88c
5cd88c
* Tue Nov 18 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.4-2
5cd88c
- Fix date in changelog
5cd88c
5cd88c
* Tue Sep 02 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.4-1
5cd88c
- Update to stable release 1.5.4 (#1111714)
5cd88c
5cd88c
* Fri Jul 25 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.3-1
5cd88c
- Update to stable release 1.5.3 (#1111714)
5cd88c
5cd88c
* Tue Jul 15 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.2-1
5cd88c
- Update to stable release 1.5.2 (#1111714)
5cd88c
5cd88c
* Tue Jul 08 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.1-6
5cd88c
- Cleanup spec file (#1068642)
5cd88c
5cd88c
* Tue Jul 08 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.1-5
5cd88c
- Minor changes to summary and description (#1067146)
5cd88c
5cd88c
* Tue Jul 08 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.1-4
5cd88c
- Include iprange tool (#1078487)
5cd88c
5cd88c
* Tue Jul 08 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.1-3
5cd88c
- Include man page for halog (#1078461)
5cd88c
5cd88c
* Tue Jul 08 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.1-2
5cd88c
- Build with openssl and zlib (#1112184)
5cd88c
5cd88c
* Tue Jul 08 2014 Ryan O'Hara <rohara@redhat.com> - 1.5.1-1
5cd88c
- Update to stable release 1.5.1 (#1111714)
5cd88c
5cd88c
* Fri Feb 28 2014 Ryan O'Hara <rohara@redhat.com> - 1.5-0.3.dev22
5cd88c
- Use haproxy-systemd-wrapper in service file (#1067060)
5cd88c
5cd88c
* Wed Feb 12 2014 Ryan O'Hara <rohara@redhat.com> - 1.5-0.2.dev22
5cd88c
- Specify assigned UID in useradd
5cd88c
5cd88c
* Mon Feb 10 2014 Ryan O'Hara <rohara@redhat.com> - 1.5-0.1.dev22
5cd88c
- Update to development release 1.5-dev22 (#1043658)
5cd88c
5cd88c
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.4.24-3
5cd88c
- Mass rebuild 2014-01-24
5cd88c
5cd88c
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4.24-2
5cd88c
- Mass rebuild 2013-12-27
5cd88c
5cd88c
* Mon Jun 17 2013 Ryan O'Hara <rohara@redhat.com> - 1.4.24-1
5cd88c
- Update to 1.4.24 (CVE-2013-2174, #975160)
5cd88c
5cd88c
* Tue Apr 30 2013 Ryan O'Hara <rohara@redhat.com> - 1.4.23-3
5cd88c
- Build with PIE flags (#955182)
5cd88c
5cd88c
* Mon Apr 22 2013 Ryan O'Hara <rohara@redhat.com> - 1.4.23-2
5cd88c
- Build with PIE flags (#955182)
5cd88c
5cd88c
* Tue Apr 02 2013 Ryan O'Hara <rohara@redhat.com> - 1.4.23-1
5cd88c
- Update to 1.4.23 (CVE-2013-1912, #947697)
5cd88c
- Drop supplementary groups after setuid/setgid (#894626)
5cd88c
5cd88c
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.22-2
5cd88c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5cd88c
5cd88c
* Fri Oct 12 2012 Robin Lee <cheeselee@fedoraproject.org> - 1.4.22-1
5cd88c
- Update to 1.4.22 (CVE-2012-2942, #824544)
5cd88c
- Use linux2628 build target
5cd88c
- No separate x86_64 build target for halog
5cd88c
- halog build honors rpmbuild optflags
5cd88c
- Specfile cleanup
5cd88c
5cd88c
* Mon Sep 17 2012 Václav Pavlín <vpavlin@redhat.com> - 1.4.20-3
5cd88c
- Scriptlets replaced with new systemd macros (#850143)
5cd88c
5cd88c
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.20-2
5cd88c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5cd88c
5cd88c
* Tue Apr 03 2012 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.20-1
5cd88c
- Update to 1.4.20
5cd88c
5cd88c
* Sun Feb 19 2012 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.19-4
5cd88c
- fix haproxy.services file
5cd88c
5cd88c
* Sun Feb 19 2012 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.19-3
5cd88c
- Update to use systemd fixing bug #770305
5cd88c
5cd88c
* Fri Feb 10 2012 Petr Pisar <ppisar@redhat.com> - 1.4.19-2
5cd88c
- Rebuild against PCRE 8.30
5cd88c
5cd88c
* Sun Jan 29 2012 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.19-1
5cd88c
- Update to 1.4.19
5cd88c
5cd88c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.18-2
5cd88c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5cd88c
5cd88c
* Thu Sep 22 2011 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.18-1
5cd88c
- Update to 1.4.18
5cd88c
5cd88c
* Tue Apr 26 2011 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.15-1
5cd88c
- Update to 1.4.15
5cd88c
5cd88c
* Sun Feb 27 2011 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.11-1
5cd88c
- update to 1.4.11
5cd88c
5cd88c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.8-2
5cd88c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5cd88c
5cd88c
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.9-1
5cd88c
- update to 1.4.9
5cd88c
5cd88c
* Sun Jun 20 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.8-1
5cd88c
- update to 1.4.8
5cd88c
5cd88c
* Sun May 30 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.4.6-1
5cd88c
- update to 1.4.6
5cd88c
5cd88c
* Thu Feb 18 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.23-1
5cd88c
- update to 1.3.23
5cd88c
5cd88c
* Sat Oct 17 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.22-1
5cd88c
- update to 1.3.22
5cd88c
- added logrotate configuration
5cd88c
5cd88c
* Mon Oct 12 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.21-1
5cd88c
- update to 1.3.21
5cd88c
5cd88c
* Sun Oct 11 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.20-1
5cd88c
- update to 1.3.20
5cd88c
5cd88c
* Sun Aug 02 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.19-1
5cd88c
- update to 1.3.19
5cd88c
5cd88c
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.18-2
5cd88c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
5cd88c
5cd88c
* Sun May 17 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.18-1
5cd88c
- update to 1.3.18
5cd88c
5cd88c
* Sat Apr 11 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.17-1
5cd88c
-  Update to 1.3.17
5cd88c
5cd88c
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.15.7-2
5cd88c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
5cd88c
5cd88c
* Tue Dec 30 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.15.7-1
5cd88c
- update to 1.3.15.7
5cd88c
- remove upstream patches, they are now part of source distribution
5cd88c
5cd88c
* Sat Nov 22 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.15.6-2
5cd88c
- apply upstream patches
5cd88c
5cd88c
* Sat Nov 15 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.15.6-1
5cd88c
- update to 1.3.15.6
5cd88c
- use new build targets from upstream
5cd88c
- add in recommended build options for x86 from upstream
5cd88c
5cd88c
* Sat Jun 28 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.14.6-1
5cd88c
- update to 1.3.14.6
5cd88c
- remove gcc 4.3 patch, it has been applied upstream
5cd88c
- remove MIT license as that code has been removed from upstream
5cd88c
5cd88c
* Mon Apr 14 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.14.4-1
5cd88c
- update to 1.3.14.4
5cd88c
5cd88c
* Sun Mar 16 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.14.3-1
5cd88c
- update to 1.3.14.3
5cd88c
5cd88c
* Sat Mar 01 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.14.2-4
5cd88c
- apply the gcc 4.3 patch to the build process
5cd88c
5cd88c
* Sat Mar 01 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.14.2-3
5cd88c
- fix gcc 4.3 bug [#434144]
5cd88c
- update init script to properly reload configuration
5cd88c
5cd88c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.14.2-2
5cd88c
- Autorebuild for GCC 4.3
5cd88c
5cd88c
* Sun Jan 20 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.14.2-1
5cd88c
- update to 1.3.14.2
5cd88c
- update make flags that changed with this upstream release
5cd88c
- added man page installation
5cd88c
5cd88c
* Sun Dec 16 2007 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.3.14-1
5cd88c
- update to 1.3.14
5cd88c
5cd88c
* Mon Nov 05 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 1.3.12.4-1
5cd88c
- update to 1.3.12.4
5cd88c
5cd88c
* Thu Nov 01 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 1.3.12.3-1
5cd88c
- update to 1.3.12.3
5cd88c
5cd88c
* Fri Sep 21 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 1.3.12.2-3
5cd88c
- fix init script 'reload' task
5cd88c
5cd88c
* Thu Sep 20 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 1.3.12.2-2
5cd88c
- update License field
5cd88c
5cd88c
* Thu Sep 20 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 1.3.12.2-1
5cd88c
- update to 1.3.12.2
5cd88c
- remove the upstream patch
5cd88c
5cd88c
* Tue Sep 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 1.3.12.1-1
5cd88c
- switch to 1.3.12.1 branch
5cd88c
- add patch from upstream with O'Reilly licensing updates.
5cd88c
- convert ISO-8859-1 doc files to UTF-8
5cd88c
5cd88c
* Sat Mar 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 1.2.17-2
5cd88c
- addition of haproxy user
5cd88c
- add license information
5cd88c
5cd88c
* Fri Mar 23 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 1.2.17-1
5cd88c
- initial packaging