Compare commits

..

No commits in common. 'master' and 'synced/master' have entirely different histories.

  1. 1
      .gitattributes
  2. 2
      .tito/packages/c-icap
  3. 2
      .tito/tito.props
  4. 0
      c-icap.conf
  5. 10
      c-icap.service
  6. 197
      c-icap.spec
  7. 4
      c-icap.sysconfig
  8. 1
      c_icap-0.5.3.tar.gz
  9. BIN
      c_icap-0.5.8.tar.gz

1
.gitattributes vendored

@ -1 +0,0 @@
*.tar.gz filter=lfs diff=lfs merge=lfs -text

@ -1 +1 @@
0.5.8-2 ./ 0.5.3-0.beta1 ./

@ -1,5 +1,5 @@
[buildconfig] [buildconfig]
builder = fws.builder.GitLfsBuilder builder = tito.builder.GitAnnexBuilder
tagger = tito.tagger.ReleaseTagger tagger = tito.tagger.ReleaseTagger
changelog_do_not_remove_cherrypick = 0 changelog_do_not_remove_cherrypick = 0
changelog_format = %s (%ae) changelog_format = %s (%ae)

@ -1,13 +1,11 @@
[Unit] [Unit]
Description=C-ICAP Server Description=C-ICAP Server
After=network.target After=network.target remote-fs.target nss-lookup.target
[Service] [Service]
Type=simple Type=forking
ExecStart=/usr/sbin/c-icap -N -f /etc/c-icap/c-icap.conf EnvironmentFile=/etc/sysconfig/c-icap
User=c-icap ExecStart=/usr/sbin/c-icap $OPTIONS
Group=c-icap
Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target

@ -1,22 +1,26 @@
Summary: An implementation of an ICAP server %define modn c_icap
Name: c-icap
Version: 0.5.8 Summary: An implementation of an ICAP server
Release: 2%{?dist} Name: c-icap
License: LGPL Version: 0.5.3
Release: 0.beta1%{?dist}
Source0: http://sourceforge.net/projects/c-icap/files/c-icap/0.5.x/c_icap-%{version}.tar.gz License: LGPL
Source1: %{name}.service
Source2: %{name}.logrotate Source0: http://sourceforge.net/projects/c-icap/files/c-icap/0.5.x/c_icap-%{version}.tar.gz/download
Source4: tmpfiles.conf Source1: %{name}.service
Source2: %{name}.sysconfig
URL: http://%{name}.sourceforge.net/ Source3: %{name}.logrotate
Source4: %{name}.conf
Requires: %{name}-libs = %{version}-%{release}
URL: http://%{name}.sourceforge.net/
BuildRequires: libdb-devel
BuildRequires: gdbm-devel Requires: %{name}-libs = %{version}-%{release}
BuildRequires: openldap-devel Requires(post): systemd
BuildRequires: zlib-devel perl-devel Requires(preun): systemd
Requires(postun): systemd
BuildRequires: systemd
BuildRequires: db4-devel gdbm-devel openldap-devel
BuildRequires: zlib-devel perl-devel
%description %description
C-icap is an implementation of an ICAP server. It can be used with HTTP C-icap is an implementation of an ICAP server. It can be used with HTTP
@ -25,82 +29,96 @@ and filtering services. Most of the commercial HTTP proxies must support
the ICAP protocol, the open source Squid 3.x proxy server supports it too. the ICAP protocol, the open source Squid 3.x proxy server supports it too.
%package devel %package devel
Summary: Development tools for %{name} Summary: Development tools for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
Requires: zlib-devel Requires: zlib-devel
%description devel %description devel
The %{name}-devel package contains the static libraries and header files The %{name}-devel package contains the static libraries and header files
for developing software using %{name}. for developing software using %{name}.
# RUN_AS="c-icap"
%package ldap %package ldap
Summary: The LDAP module for %{name} Summary: The LDAP module for %{name}
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description ldap %description ldap
The %{name}-ldap package contains the LDAP module for %{name}. The %{name}-ldap package contains the LDAP module for %{name}.
%package libs
Summary: Libraries used by %{name}
Group: System Environment/Libraries
%description libs %package libs
Summary: Libraries used by %{name}
Group: System Environment/Libraries
%description libs
The %{name}-libs package contains all runtime libraries used by %{name} and The %{name}-libs package contains all runtime libraries used by %{name} and
the utilities. the utilities.
%package perl %package perl
Summary: The Perl handler for %{name} Summary: The Perl handler for %{name}
Group: System Environment/Libraries Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
%description perl %description perl
The %{name}-perl package contains the Perl handler for %{name}. The %{name}-perl package contains the Perl handler for %{name}.
%package progs %package progs
Summary: Related programs for %{name} Summary: Related programs for %{name}
Group: Applications/Internet Group: Applications/Internet
Requires: %{name}-libs = %{version}-%{release} Requires: %{name}-libs = %{version}-%{release}
%description progs %description progs
The %{name}-progs package contains several commandline tools for %{name}. The %{name}-progs package contains several commandline tools for %{name}.
%prep %prep
%setup -q -n c_icap-%{version} %setup -q -n %{modn}-%{version}
%build %build
%configure \ %configure \
CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing" \ CFLAGS="${RPM_OPT_FLAGS} -fno-strict-aliasing" \
--disable-static \
--sysconfdir=%{_sysconfdir}/%{name} \ --sysconfdir=%{_sysconfdir}/%{name} \
--prefix='' \ --enable-shared \
--enable-static \
--enable-lib-compat \
--with-perl \ --with-perl \
--with-zlib \ --with-zlib \
--with-bdb \ --with-bdb \
--with-ldap \ --with-ldap \
--enable-large-files --enable-large-files
# --enable-ipv6 # net.ipv6.bindv6only not supported
%{__make} %{?_smp_mflags} %{__make} %{?_smp_mflags}
%install %install
[ -n "%{buildroot}" -a "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} [ -n "%{buildroot}" -a "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_sysconfdir}/logrotate.d %{__mkdir_p} %{buildroot}%{_sysconfdir}/{logrotate.d,sysconfig}
%{__mkdir_p} %{buildroot}%{_sbindir} %{__mkdir_p} %{buildroot}%{_sbindir}
%{__mkdir_p} %{buildroot}%{_datadir}/c_icap/{contrib,templates} %{__mkdir_p} %{buildroot}%{_datadir}/%{modn}/{contrib,templates}
%{__mkdir_p} %{buildroot}%{_localstatedir}/log/%{name} %{__mkdir_p} %{buildroot}%{_localstatedir}/log/%{name}
%{__make} DESTDIR=%{buildroot} install %{__make} \
%{__mv} -f %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir} DESTDIR=%{buildroot} \
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install
%{__mv} -f %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}
%{__install} -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
%{__install} -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%{__install} -D -p -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf %{__install} -D -p -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%{__install} -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/c-icap.service %{__install} -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/c-icap.service
%{__install} -m 0755 contrib/*.pl %{buildroot}%{_datadir}/c_icap/contrib
%{__rm} -f %{buildroot}%{_libdir}/lib*.so.{?,??} %{__install} -m 0755 contrib/*.pl %{buildroot}%{_datadir}/%{modn}/contrib
%{__rm} -f %{buildroot}%{_libdir}/lib*.so.{?,??}
%pre %pre
@ -121,14 +139,18 @@ exit 0 # Always pass
%post libs -p /sbin/ldconfig %post libs -p /sbin/ldconfig
%preun %preun
%systemd_preun c-icap.service %systemd_preun c-icap.service
%postun %postun
%systemd_postun_with_restart c-icap.service %systemd_postun_with_restart c-icap.service
%postun libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS COPYING INSTALL README TODO %doc AUTHORS COPYING INSTALL README TODO
@ -137,15 +159,16 @@ exit 0 # Always pass
%attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/*.magic %attr(640,root,%{name}) %config(noreplace) %{_sysconfdir}/%{name}/*.magic
%attr(640,root,%{name}) %{_sysconfdir}/%{name}/*.default %attr(640,root,%{name}) %{_sysconfdir}/%{name}/*.default
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/c-icap.service %{_unitdir}/c-icap.service
%dir %{_libdir}/c_icap %dir %{_libdir}/%{modn}
%{_libdir}/c_icap/bdb_tables.so %{_libdir}/%{modn}/bdb_tables.so
%{_libdir}/c_icap/dnsbl_tables.so %{_libdir}/%{modn}/dnsbl_tables.so
%{_libdir}/c_icap/srv_echo.so %{_libdir}/%{modn}/srv_echo.so
%{_libdir}/c_icap/sys_logger.so %{_libdir}/%{modn}/sys_logger.so
%{_libdir}/c_icap/shared_cache.so %{_libdir}/%{modn}/shared_cache.so
%{_sbindir}/%{name} %{_sbindir}/%{name}
%{_datadir}/c_icap %{_datadir}/%{modn}
%{_mandir}/man8/%{name}.8* %{_mandir}/man8/%{name}.8*
%attr(750,%{name},%{name}) %dir %{_localstatedir}/log/%{name} %attr(750,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
%attr(750,%{name},%{name}) %dir %{_localstatedir}/run/%{name} %attr(750,%{name},%{name}) %dir %{_localstatedir}/run/%{name}
@ -154,33 +177,33 @@ exit 0 # Always pass
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%{_bindir}/%{name}-*config %{_bindir}/%{name}-*config
%{_includedir}/c_icap %{_includedir}/%{modn}
%{_libdir}/libicapapi.*a %{_libdir}/libicapapi.*a
%{_libdir}/libicapapi.so %{_libdir}/libicapapi.so
%{_libdir}/c_icap/bdb_tables.*a %{_libdir}/%{modn}/bdb_tables.*a
%{_libdir}/c_icap/dnsbl_tables.*a %{_libdir}/%{modn}/dnsbl_tables.*a
%{_libdir}/c_icap/ldap_module.*a %{_libdir}/%{modn}/ldap_module.*a
%{_libdir}/c_icap/perl_handler.*a %{_libdir}/%{modn}/perl_handler.*a
%{_libdir}/c_icap/srv_echo.*a %{_libdir}/%{modn}/srv_echo.*a
%{_libdir}/c_icap/sys_logger.*a %{_libdir}/%{modn}/sys_logger.*a
%{_libdir}/c_icap/srv_ex206.*a %{_libdir}/%{modn}/srv_ex206.*a
%{_libdir}/c_icap/shared_cache.*a %{_libdir}/%{modn}/shared_cache.*a
%{_mandir}/man8/%{name}-*config.8* %{_mandir}/man8/%{name}-*config.8*
%files ldap %files ldap
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/c_icap/ldap_module.so %{_libdir}/%{modn}/ldap_module.so
%files libs %files libs
%defattr(-,root,root) %defattr(-,root,root)
%doc COPYING %doc COPYING
%{_libdir}/libicapapi.so.* %{_libdir}/libicapapi.so.*
%{_libdir}/c_icap/srv_ex206.so %{_libdir}/%{modn}/srv_ex206.so
%files perl %files perl
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/c_icap/perl_handler.so %{_libdir}/%{modn}/perl_handler.so
%files progs %files progs
%defattr(-,root,root) %defattr(-,root,root)
@ -193,30 +216,10 @@ exit 0 # Always pass
%changelog %changelog
* Fri Aug 27 2021 Daniel Berteaud <daniel@firewall-services.com> 0.5.8-2 * Sun Feb 18 2018 Daniel Berteaud <daniel@firewall-services.com> 0.5.3-0.beta1
- Update to 0.5.8 (daniel@firewall-services.com) - new package built with tito
* Thu Nov 12 2020 Daniel Berteaud <daniel@firewall-services.com> 0.5.7-1
- Update to 0.5.7 (daniel@firewall-services.com)
* Sat Nov 07 2020 Daniel Berteaud <daniel@firewall-services.com> 0.5.6-2
- BuildReq libdb-devel instead of db4-devel (daniel@firewall-services.com)
* Wed Dec 11 2019 Daniel Berteaud <daniel@firewall-services.com> 0.5.6-1
- Update to 0.5.6 (daniel@firewall-services.com)
* Tue Nov 27 2018 Daniel Berteaud <daniel@firewall-services.com> 0.5.5-1
- Update sources to 0.5.5 (daniel@firewall-services.com)
- Update tito config to use GitLfsBuilder (daniel@firewall-services.com)
- Track sources with git lfs (daniel@firewall-services.com)
* Mon Feb 19 2018 Daniel Berteaud <daniel@firewall-services.com> 0.5.3-0.beta6
- Remove debug statements in service unit (daniel@firewall-services.com)
* Sun Feb 18 2018 Daniel Berteaud <daniel@firewall-services.com> 0.5.3-1 * Sun Feb 18 2018 Daniel Berteaud <daniel@firewall-services.com> - 0.5.3
- Stable release
- Clean spec file
- Use syslog for daemon logging
- Update to 0.5.3 - Update to 0.5.3
* Wed Sep 27 2017 Giacomo Sanchietti <giacomo.sanchietti@nethesis.it> - 0.5.2 * Wed Sep 27 2017 Giacomo Sanchietti <giacomo.sanchietti@nethesis.it> - 0.5.2

@ -0,0 +1,4 @@
# /etc/sysconfig/c-icap
#
# Add extra daemon options here
OPTIONS="-f /etc/c-icap/c-icap.conf"

@ -0,0 +1 @@
.git/annex/objects/jq/6k/SHA256E-s690423--0238508c94a406c7a2c8a0ff9659e7ba631554eda55001b43351bb68f85121d2.tar.gz/SHA256E-s690423--0238508c94a406c7a2c8a0ff9659e7ba631554eda55001b43351bb68f85121d2.tar.gz

BIN
c_icap-0.5.8.tar.gz (Stored with Git LFS)

Binary file not shown.
Loading…
Cancel
Save