blob: 6256cebcc7d09e33ebaa5e1781491bd2ce399373 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
PACKAGES =+ "${PN}-date"
FILES_${PN}-date = "/bin/date"
python do_package_append() {
pkgdest = d.getVar("PKGDEST",True)
pn = d.getVar("PN",True)
base_bindir = d.getVar("base_bindir",True)
fromf = pkgdest + "/" + pn + "/" + base_bindir + "/date.coreutils"
todir = pkgdest + "/" + pn + "-date/" + base_bindir
tof = todir + "/date"
os.mkdir(todir,mode=0o755)
os.rename(fromf,tof)
# mv ${PKGDEST}/${PN}/${base_bindir}/date.coreutils ${PKGDEST}/${PN}-date/${base_bindir}/date
workdir = d.getVar("WORKDIR",True)
rdir = workdir + "/pkgdata/runtime-reverse"
os.symlink("../runtime/coreutils-date",rdir + "/coreutils-date")
}
|