diff options
author | Chris Larson <kergoth@openedhand.com> | 2006-09-07 20:46:06 +0000 |
---|---|---|
committer | Chris Larson <kergoth@openedhand.com> | 2006-09-07 20:46:06 +0000 |
commit | abfc1dbd73d59344564e7cc00754a259d2f2bc85 (patch) | |
tree | 6a24874055c7dc6bb6721d369764db479729c592 /meta/packages/apt/apt-native.inc | |
parent | 2ca2649935540acd6e160f82ddd074b04dfea924 (diff) | |
download | poky-abfc1dbd73d59344564e7cc00754a259d2f2bc85.tar.gz |
Add apt & apt-native, including the generation of the apt.conf to be used for the rootfs population.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@699 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/apt/apt-native.inc')
-rw-r--r-- | meta/packages/apt/apt-native.inc | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/meta/packages/apt/apt-native.inc b/meta/packages/apt/apt-native.inc new file mode 100644 index 0000000000..4ace9e94bb --- /dev/null +++ b/meta/packages/apt/apt-native.inc | |||
@@ -0,0 +1,57 @@ | |||
1 | require apt.inc | ||
2 | inherit native | ||
3 | |||
4 | DEPENDS += "dpkg-native" | ||
5 | FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/apt-${PV}" | ||
6 | PACKAGES = "" | ||
7 | USE_NLS = "no" | ||
8 | |||
9 | python do_stage () { | ||
10 | bb.build.exec_func('do_stage_base', d) | ||
11 | bb.build.exec_func('do_stage_config', d) | ||
12 | } | ||
13 | |||
14 | python do_stage_config () { | ||
15 | indir = os.path.dirname(bb.data.getVar('FILE',d,1)) | ||
16 | infile = file(os.path.join(indir, 'files', 'apt.conf'), 'r') | ||
17 | data = infile.read() | ||
18 | infile.close() | ||
19 | |||
20 | data = bb.data.expand(data, d) | ||
21 | |||
22 | outpath = bb.data.expand('${STAGING_DIR}/${sysconfdir}/apt.conf', d) | ||
23 | outfile = file(outpath, 'w') | ||
24 | outfile.write(data) | ||
25 | outfile.close() | ||
26 | } | ||
27 | |||
28 | do_stage_base () { | ||
29 | install -d ${STAGING_BINDIR} | ||
30 | install -m 0755 bin/apt-cdrom ${STAGING_BINDIR}/ | ||
31 | install -m 0755 bin/apt-get ${STAGING_BINDIR}/ | ||
32 | install -m 0755 bin/apt-config ${STAGING_BINDIR}/ | ||
33 | install -m 0755 bin/apt-cache ${STAGING_BINDIR}/ | ||
34 | |||
35 | install -m 0755 bin/apt-sortpkgs ${STAGING_BINDIR}/ | ||
36 | install -m 0755 bin/apt-extracttemplates ${STAGING_BINDIR}/ | ||
37 | |||
38 | eval `cat environment.mak | grep ^GLIBC_VER | sed -e's, = ,=,'` | ||
39 | oe_libinstall -so -C bin libapt-pkg$GLIBC_VER-6 ${STAGING_LIBDIR}/ | ||
40 | ln -sf libapt-pkg$GLIBC_VER-6.so ${STAGING_LIBDIR}/libapt-pkg.so | ||
41 | oe_libinstall -so -C bin libapt-inst$GLIBC_VER-6 ${STAGING_LIBDIR}/ | ||
42 | ln -sf libapt-inst$GLIBC_VER-6.so ${STAGING_LIBDIR}/libapt-inst.so | ||
43 | |||
44 | install -d ${STAGING_LIBDIR}/apt/methods | ||
45 | install -m 0755 bin/methods/* ${STAGING_LIBDIR}/apt/methods/ | ||
46 | |||
47 | install -d ${STAGING_LIBDIR}/dpkg/methods/apt | ||
48 | install -m 0644 dselect/desc.apt ${STAGING_LIBDIR}/dpkg/methods/apt/ | ||
49 | install -m 0644 dselect/names ${STAGING_LIBDIR}/dpkg/methods/apt/ | ||
50 | install -m 0755 dselect/install ${STAGING_LIBDIR}/dpkg/methods/apt/ | ||
51 | install -m 0755 dselect/setup ${STAGING_LIBDIR}/dpkg/methods/apt/ | ||
52 | install -m 0755 dselect/update ${STAGING_LIBDIR}/dpkg/methods/apt/ | ||
53 | |||
54 | install -d ${STAGING_DIR}${sysconfdir}/apt | ||
55 | install -d ${STAGING_DIR}${localstatedir}/lib/apt/lists/partial | ||
56 | install -d ${STAGING_DIR}${localstatedir}/cache/apt/archives/partial | ||
57 | } | ||