summaryrefslogtreecommitdiff
path: root/packages/dpkg/dpkg-native.inc
blob: 771476ff2f3bd08fb5c7722b626fec7ef242a256 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require dpkg.inc

inherit native

DEPENDS = "perl-native bzip2-native zlib-native virtual/update-alternatives-native"
RDEPENDS = ""

SRC_URI += "file://noman.patch;patch=1"
FILESPATH += "dpkg-${PV}"

# We need to do this so our perl is picked up.
do_configure_prepend() {
	export PERL=${STAGING_BINDIR}/perl
}

EXTRA_OECONF = "--without-static-progs \
		--without-dselect \
		--with-start-stop-daemon \
		--with-zlib \
		--with-bz2lib \
		--without-selinux \
		--without-sgml-doc"

do_stage_append() {
	for BIN in dpkg-architecture; do
		sed -i -e '1s,^#.*usr/bin,#!${STAGING_BINDIR},' ${STAGING_BINDIR}/$BIN
	done
}