Skip to content

Commit

Permalink
Added leech to deps-packaging
Browse files Browse the repository at this point in the history
Ticket: ENT-11573
Changelog: None
Signed-off-by: Lars Erik Wik <[email protected]>
  • Loading branch information
larsewi committed Apr 26, 2024
1 parent ccc6ee8 commit 5904e54
Show file tree
Hide file tree
Showing 9 changed files with 130 additions and 0 deletions.
1 change: 1 addition & 0 deletions build-scripts/compile-options
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
68 changes: 68 additions & 0 deletions deps-packaging/leech/cfbuild-leech.spec
Original file line number Diff line number Diff line change
@@ -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




2 changes: 2 additions & 0 deletions deps-packaging/leech/debian/cfbuild-leech-devel.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/var/cfengine/include
/var/cfengine/lib/*.so
1 change: 1 addition & 0 deletions deps-packaging/leech/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
10
12 changes: 12 additions & 0 deletions deps-packaging/leech/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Source: cfbuild-leech
Section: libs
Priority: optional
Maintainer: CFEngine Packager <[email protected]>
Build-Depends: debhelper
Standards-Version: 3.8.4

Package: cfbuild-leech
Section: libs
Architecture: any
Description: CFEngine Build Automation -- leech
CFEngine Build Automation -- leech
Empty file.
44 changes: 44 additions & 0 deletions deps-packaging/leech/debian/rules
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions deps-packaging/leech/distfiles
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
817e0bc90dd212c529ebb0299bbf547da75b7c6bbbc7d5cd1a05eeca3ae69cbe leech-0.1.5.tar.gz
1 change: 1 addition & 0 deletions deps-packaging/leech/source
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://github.com/larsewi/leech/releases/download/v0.1.5-alpha/

0 comments on commit 5904e54

Please sign in to comment.