From 5904e541643323b2b3912dba8af1f1ca3ed49827 Mon Sep 17 00:00:00 2001 From: Lars Erik Wik Date: Fri, 19 Apr 2024 17:15:47 +0200 Subject: [PATCH] Added leech to deps-packaging Ticket: ENT-11573 Changelog: None Signed-off-by: Lars Erik Wik --- build-scripts/compile-options | 1 + deps-packaging/leech/cfbuild-leech.spec | 68 +++++++++++++++++++ .../leech/debian/cfbuild-leech-devel.install | 2 + deps-packaging/leech/debian/compat | 1 + deps-packaging/leech/debian/control | 12 ++++ deps-packaging/leech/debian/copyright | 0 deps-packaging/leech/debian/rules | 44 ++++++++++++ deps-packaging/leech/distfiles | 1 + deps-packaging/leech/source | 1 + 9 files changed, 130 insertions(+) create mode 100644 deps-packaging/leech/cfbuild-leech.spec create mode 100644 deps-packaging/leech/debian/cfbuild-leech-devel.install create mode 100644 deps-packaging/leech/debian/compat create mode 100644 deps-packaging/leech/debian/control create mode 100644 deps-packaging/leech/debian/copyright create mode 100755 deps-packaging/leech/debian/rules create mode 100644 deps-packaging/leech/distfiles create mode 100644 deps-packaging/leech/source diff --git a/build-scripts/compile-options b/build-scripts/compile-options index 11b091805..d2193706d 100644 --- a/build-scripts/compile-options +++ b/build-scripts/compile-options @@ -129,6 +129,7 @@ esac var_append DEPS "libxml2 libyaml" var_append DEPS "diffutils" +var_append DEPS "leech" # LDAP functions in the agent # and LDAP authentication functionality in Mission Portal diff --git a/deps-packaging/leech/cfbuild-leech.spec b/deps-packaging/leech/cfbuild-leech.spec new file mode 100644 index 000000000..f02e7a142 --- /dev/null +++ b/deps-packaging/leech/cfbuild-leech.spec @@ -0,0 +1,68 @@ +%define leech_version 0.1.5 + +Summary: CFEngine Build Automation -- leech +Name: cfbuild-leech +Version: %{version} +Release: 1 +Source0: leech-%{leech_version}.tar.gz +License: MIT +Group: Other +Url: http://example.com/ +BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}-buildroot + +AutoReqProv: no + +%define prefix %{buildprefix} + +%prep +mkdir -p %{_builddir} +%setup -q -n leech-%{leech_version} + +./configure --prefix=%{prefix} + +%build + +make + +%install +rm -rf ${RPM_BUILD_ROOT} + +make install DESTDIR=${RPM_BUILD_ROOT} + +rm -rf ${RPM_BUILD_ROOT}%{prefix}/lib/*.a +rm -rf ${RPM_BUILD_ROOT}%{prefix}/lib/*.la + +%clean +rm -rf $RPM_BUILD_ROOT + +%package devel +Summary: CFEngine Build Automation -- leech -- development files +Group: Other +AutoReqProv: no + +%description +CFEngine Build Automation -- leech + +%description devel +CFEngine Build Automation -- leech -- development files + +%files +%defattr(-,root,root) + +%dir %prefix/lib +%prefix/lib/*.so.* +%prefix/lib/*.so + +%files devel +%defattr(-,root,root) + +%prefix/include + +%dir %prefix/lib +%prefix/lib/*.so + +%changelog + + + + diff --git a/deps-packaging/leech/debian/cfbuild-leech-devel.install b/deps-packaging/leech/debian/cfbuild-leech-devel.install new file mode 100644 index 000000000..fcabb82f2 --- /dev/null +++ b/deps-packaging/leech/debian/cfbuild-leech-devel.install @@ -0,0 +1,2 @@ +/var/cfengine/include +/var/cfengine/lib/*.so diff --git a/deps-packaging/leech/debian/compat b/deps-packaging/leech/debian/compat new file mode 100644 index 000000000..f599e28b8 --- /dev/null +++ b/deps-packaging/leech/debian/compat @@ -0,0 +1 @@ +10 diff --git a/deps-packaging/leech/debian/control b/deps-packaging/leech/debian/control new file mode 100644 index 000000000..9c7a6b255 --- /dev/null +++ b/deps-packaging/leech/debian/control @@ -0,0 +1,12 @@ +Source: cfbuild-leech +Section: libs +Priority: optional +Maintainer: CFEngine Packager +Build-Depends: debhelper +Standards-Version: 3.8.4 + +Package: cfbuild-leech +Section: libs +Architecture: any +Description: CFEngine Build Automation -- leech + CFEngine Build Automation -- leech diff --git a/deps-packaging/leech/debian/copyright b/deps-packaging/leech/debian/copyright new file mode 100644 index 000000000..e69de29bb diff --git a/deps-packaging/leech/debian/rules b/deps-packaging/leech/debian/rules new file mode 100755 index 000000000..8db2cb4b3 --- /dev/null +++ b/deps-packaging/leech/debian/rules @@ -0,0 +1,44 @@ +#!/usr/bin/make -f + +PREFIX=$(BUILDPREFIX) + +clean: + dh_testdir + dh_testroot + + dh_clean + +build: build-stamp +build-stamp: + dh_testdir + + ./configure + make CURL_LDFLAGS="-lcurl" + + touch build-stamp + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_install --sourcedir=debian/tmp + dh_link + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure diff --git a/deps-packaging/leech/distfiles b/deps-packaging/leech/distfiles new file mode 100644 index 000000000..5d117e396 --- /dev/null +++ b/deps-packaging/leech/distfiles @@ -0,0 +1 @@ +817e0bc90dd212c529ebb0299bbf547da75b7c6bbbc7d5cd1a05eeca3ae69cbe leech-0.1.5.tar.gz diff --git a/deps-packaging/leech/source b/deps-packaging/leech/source new file mode 100644 index 000000000..e66ad6ee5 --- /dev/null +++ b/deps-packaging/leech/source @@ -0,0 +1 @@ +https://github.com/larsewi/leech/releases/download/v0.1.5-alpha/