Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENT-11573: Added leech to deps-packaging #1406

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
70 changes: 70 additions & 0 deletions deps-packaging/leech/cfbuild-leech.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
%define leech_version 0.1.20

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}

# Touch this file, or else autoreconf is called for some reason
touch config.h.in
./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/cfbuild-leech.install
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/var/cfengine/lib
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 --prefix=$(PREFIX)
make

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 @@
b2b8b66dc3fb4f2e2b3b2850460b6f38718339c61a034f50a8a19f376a5b4e85 leech-0.1.20.tar.gz
28 changes: 28 additions & 0 deletions deps-packaging/leech/hpux/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/sh -e

# Options

PREFIX=${BUILDPREFIX}

TT=${BUILD_ROOT}/cfbuild-leech${PREFIX}
TTD=${BUILD_ROOT}/cfbuild-leech-devel${PREFIX}

# Build

# Touch this file, or else autoreconf is called for some reason
touch config.h.in
./configure --prefix=$PREFIX
gmake

# Test

# Install

mkdir -p $TTD/lib
mkdir -p $TTD/include
gmake install prefix=${TTD}

# Package

mkdir -p ${TT}/lib
mv ${TTD}/lib/*.so* ${TT}/lib
1 change: 1 addition & 0 deletions deps-packaging/leech/hpux/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cfbuild-leech cfbuild-leech-devel
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/var/cfengine/include
/var/cfengine/lib/*.dll.a

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

Package: cfbuild-leech-mingw64
Section: libs
Architecture: any
Description: CFEngine Build Automation -- leech -- mingw64
CFEngine Build Automation -- leech -- mingw64

Package: cfbuild-leech-mingw64-devel
Section: libdevel
Architecture: any
Description: CFEngine Build Automation -- leech -- mingw64 -- development files
CFEngine Build Automation -- leech -- mingw64 -- development files
Empty file.
51 changes: 51 additions & 0 deletions deps-packaging/leech/mingw/debian/rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
#!/usr/bin/make -f

PREFIX=$(BUILDPREFIX)

clean:
dh_testdir
dh_testroot

dh_clean

build: build-stamp
build-stamp:
dh_testdir

# Touch this file, or else autoreconf is called for some reason
touch config.h.in
./configure LDFLAGS="-Wl,-no-undefined" --host=$(DEB_HOST_GNU_TYPE) --prefix=$(PREFIX) \
--enable-shared \
--disable-static
make

touch build-stamp

install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs

make install DESTDIR=$(CURDIR)/debian/tmp

rm -f $(CURDIR)/debian/tmp$(PREFIX)/lib/leech.a
rm -f $(CURDIR)/debian/tmp$(PREFIX)/lib/leech.la

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
33 changes: 33 additions & 0 deletions deps-packaging/leech/solaris/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/xpg4/bin/sh -e

# Options

PREFIX=${BUILDPREFIX}

TT=${BUILD_ROOT}/cfbuild-leech${PREFIX}
TTD=${BUILD_ROOT}/cfbuild-leech-devel${PREFIX}

# Patch
# Solaris 8

# Build

# Touch this file, or else autoreconf is called for some reason
touch config.h.in
./configure --prefix=$PREFIX

$MAKE

# Test

# Install

mkdir -p $TTD/lib
mkdir -p $TTD/include
$MAKE install prefix=${TTD}

# Package


mkdir -p ${TT}/lib
mv ${TTD}/lib/*.so* ${TT}/lib
1 change: 1 addition & 0 deletions deps-packaging/leech/solaris/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cfbuild-leech cfbuild-leech-devel
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.20-alpha/