summaryrefslogtreecommitdiff
path: root/packages/nslu2-binary-only/nslu2-linksys-sambacodepages_2.3r63.bb
blob: 4aace52412eee0eee14ccf8502ebc8d862d4d763 (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
29
DESCRIPTION = "Linksys NSLU2 Stock Firmware Samba Code Pages."
PACKAGE_ARCH = "nslu2"
SECTION = "base"
PRIORITY = "required"
PR = "r1"

SRC_URI = "http://nslu.sf.net/downloads/nslu2-linksys-ramdisk-2.3r63-2.tar.bz2"

S = "${WORKDIR}/nslu2-linksys-ramdisk-2.3r63"

do_install () {
	( cd ${S} ; mkdir unslung-tmp )
	( cd ${S}/etc ; tar cvf - samba/codepages ) | ( cd ${S}/unslung-tmp; tar xvf - )
	( cd ${S} ; rm -rf bin dev etc home lib lost+found mnt proc sbin share tmp upload usr var )
	( cd ${S} ; mv unslung-tmp etc )
	( cd ${S}/etc/samba/codepages; rm -f codepage.437 unicode_map.437 )
	( cd ${S}/etc/samba/codepages; rm -f codepage.850 unicode_map.850 )
	( cd ${S}/etc/samba/codepages; rm -f              unicode_map.ISO8859-1 )
	( cd ${S} ; tar cvf - . ) | ( cd ${D} ; tar xvf - )
}

PACKAGES = "${PN}"
FILES_${PN} = "/etc/samba/codepages"

python () {
	# Don't build unless we're targeting an nslu2
	if bb.data.getVar("MACHINE", d, 1) != "nslu2":
		raise bb.parse.SkipPackage("NSLU2 stock firmware Samba code pages only builds for the Linksys NSLU2")
}