Skip to content

Commit 13dc52a

Browse files
committed
Added leech to deps-packaging
Ticket: ENT-11574 Changelog: None Signed-off-by: Lars Erik Wik <[email protected]>
1 parent 4db5249 commit 13dc52a

23 files changed

+271
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ File `install-dependencies` and the relevant subdirectories in `deps-packaging`
144144
| [SASL2](https://cyrusimap.org/mediawiki/index.php/Downloads) | 2.1.28 | 2.1.28 | 2.1.28 | Solaris Enterprise agent |
145145
| [zlib](http://www.zlib.net/) | 1.3.1 | 1.3.1 | 1.3.1 | |
146146
| [librsync](https://github.com/librsync/librsync/releases) | | | 2.3.4 | |
147+
| [leech](https://github.com/larsewi/leech/releases) | | | 0.1.21 | |
147148
| libgcc | | | | AIX and Solaris only |
148149

149150
### Enterprise Hub dependencies:

build-scripts/compile-options

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ case "$PROJECT" in
137137
nova) var_append DEPS "openldap"
138138
esac
139139

140+
case "$PROJECT" in
141+
nova) var_append DEPS "leech"
142+
esac
143+
140144
# libacl & libattr - not for the exotics (linux only?)
141145
case "$OS_FAMILY" in
142146
hpux|aix|solaris|freebsd|mingw) ;;

build-scripts/configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ case "$DEPS" in
4040
*librsync*) var_append ARGS "--with-librsync=$P" ;;
4141
*) var_append ARGS "--without-librsync" ;;
4242
esac
43+
case "$DEPS" in
44+
*leech*) var_append ARGS "--with-leech=$P" ;;
45+
*) var_append ARGS "--without-leech" ;;
46+
esac
4347
case "$DEPS" in
4448
*postgresql*) var_append ARGS "--with-postgresql=$P --without-mysql" ;;
4549
*) var_append ARGS "--without-sql" ;;
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
%define leech_version 0.1.21
2+
3+
Summary: CFEngine Build Automation -- leech
4+
Name: cfbuild-leech
5+
Version: %{version}
6+
Release: 1
7+
Source0: leech-%{leech_version}.tar.gz
8+
License: LGPL
9+
Group: Other
10+
Url: https://github.com/larsewi/leech
11+
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}-buildroot
12+
13+
AutoReqProv: no
14+
15+
%define prefix %{buildprefix}
16+
17+
%prep
18+
mkdir -p %{_builddir}
19+
%setup -q -n leech-%{leech_version}
20+
21+
./configure --prefix=%{prefix} --enable-shared --disable-static
22+
23+
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/libleech.a
24+
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/libleech.la
25+
26+
%build
27+
28+
make
29+
30+
%install
31+
rm -rf ${RPM_BUILD_ROOT}
32+
33+
make install DESTDIR=${RPM_BUILD_ROOT}
34+
35+
%clean
36+
rm -rf $RPM_BUILD_ROOT
37+
38+
%package devel
39+
Summary: CFEngine Build Automation -- leech -- development files
40+
Group: Other
41+
AutoReqProv: no
42+
43+
%description
44+
CFEngine Build Automation -- leech
45+
46+
%description devel
47+
CFEngine Build Automation -- leech -- development files
48+
49+
%files
50+
%defattr(-,root,root)
51+
52+
%dir %{prefix}/lib
53+
%{prefix}/lib/*.so*
54+
55+
%files devel
56+
%defattr(-,root,root)
57+
58+
%dir %{prefix}/include
59+
%{prefix}/include/*.h
60+
61+
%dir %{prefix}/lib
62+
%{prefix}/lib/*.la
63+
64+
%changelog
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/var/cfengine/include
2+
/var/cfengine/lib/*.so
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/var/cfengine/lib/*.so.*

deps-packaging/leech/debian/compat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
10
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Source: cfbuild-leech
2+
Section: libs
3+
Priority: optional
4+
Maintainer: CFEngine Packager <[email protected]>
5+
Build-Depends: debhelper
6+
Standards-Version: 3.8.4
7+
8+
Package: cfbuild-leech
9+
Section: libs
10+
Architecture: any
11+
Description: CFEngine Build Automation -- leech
12+
CFEngine Build Automation -- leech
13+
14+
Package: cfbuild-leech-devel
15+
Section: libdevel
16+
Architecture: any
17+
Description: CFEngine Build Automation -- leech -- development files
18+
CFEngine Build Automation -- leech -- development files

deps-packaging/leech/debian/copyright

Whitespace-only changes.

deps-packaging/leech/debian/rules

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/make -f
2+
3+
PREFIX=$(BUILDPREFIX)
4+
5+
clean:
6+
dh_testdir
7+
dh_testroot
8+
9+
dh_clean
10+
11+
build: build-stamp
12+
build-stamp:
13+
dh_testdir
14+
15+
./configure --prefix=$(PREFIX) --enable-shared --disable-static
16+
make
17+
18+
touch build-stamp
19+
20+
install: build
21+
dh_testdir
22+
dh_testroot
23+
dh_clean -k
24+
dh_installdirs
25+
26+
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
27+
28+
binary-indep: build install
29+
30+
binary-arch: build install
31+
dh_testdir
32+
dh_testroot
33+
dh_install --sourcedir=debian/tmp
34+
dh_link
35+
dh_strip
36+
dh_compress
37+
dh_fixperms
38+
dh_installdeb
39+
dh_gencontrol
40+
dh_md5sums
41+
dh_builddeb
42+
43+
binary: binary-indep binary-arch
44+
.PHONY: build clean binary-indep binary-arch binary install configure

0 commit comments

Comments
 (0)