diff --git a/base/dpkg/.gitignore b/base/dpkg/.gitignore new file mode 100644 index 000000000..95e75bdf4 --- /dev/null +++ b/base/dpkg/.gitignore @@ -0,0 +1,6 @@ +!.distro +.distro/centos7/rpmbuild/RPMS +.distro/centos7/rpmbuild/SRPMS +.distro/centos7/rpmbuild/BUILD +.distro/centos7/rpmbuild/BUILDROOT +.distro/centos7/rpmbuild/SOURCES/dpkg*tar.gz diff --git a/base/dpkg/README b/base/dpkg/README new file mode 100644 index 000000000..27334c74c --- /dev/null +++ b/base/dpkg/README @@ -0,0 +1,4 @@ +Many Titanium Cloud init services are using start-stop-daemon. It's not available under +centos. Just pull it from dpkg but don't install everything. + +Source: http://ftp.de.debian.org/debian/pool/main/d/dpkg/ diff --git a/base/dpkg/centos/build_srpm.data b/base/dpkg/centos/build_srpm.data new file mode 100644 index 000000000..129d3fbad --- /dev/null +++ b/base/dpkg/centos/build_srpm.data @@ -0,0 +1,2 @@ +COPY_LIST="$CGCS_BASE/downloads/dpkg_1.18.24.tar.xz" +TIS_PATCH_VER=1 diff --git a/base/dpkg/centos/dpkg.spec b/base/dpkg/centos/dpkg.spec new file mode 100644 index 000000000..b893ebedc --- /dev/null +++ b/base/dpkg/centos/dpkg.spec @@ -0,0 +1,43 @@ +Summary: dpkg +Name: dpkg +Version: 1.18.24 +Release: 0%{?_tis_dist}.%{tis_patch_ver} +License: GPLv2 and GPLv2+ and LGPLv2+ and Public Domain and BSD +Group: base +Packager: Wind River +URL: unknown +Source0: %{name}_%{version}.tar.xz + +BuildRequires: gcc +BuildRequires: gcc-c++ +BuildRequires: ncurses-static +BuildRequires: perl-version + +%description +dpkg + +%define local_bindir /usr/bin/ + +%prep +%setup + +%build +./configure --prefix=$RPM_BUILD_ROOT \ + --disable-dselect \ + --disable-update-alternatives \ + --without-liblzma +make -j"%(nproc)" + +%install +# Don't install everything, it's too dangerous +# make install + +install -d -m 755 %{buildroot}%{local_bindir} +install -p -D -m 700 utils/start-stop-daemon %{buildroot}%{local_bindir}/start-stop-daemon + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%{local_bindir}/* diff --git a/centos_pkg_dirs b/centos_pkg_dirs index 525109da5..52292f2e1 100644 --- a/centos_pkg_dirs +++ b/centos_pkg_dirs @@ -126,3 +126,4 @@ kernel/kernel-modules/tpmdd kernel/kernel-modules/integrity kernel/kernel-modules/drbd base/rpm +base/dpkg