summaryrefslogtreecommitdiff
path: root/pcmcia-cs/pcmcia-cs_3.2.7.oe
blob: 2a9d2e36836b3038b326594ac580350895d210c6 (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 = "Card Services for Linux is a complete PCMCIA support package."
SECTION = "base"
PRIORITY = "optional"
LICENSE = "GPL"
RDEPENDS = "modutils psmisc"

SRC_URI = "http://pcmcia-cs.sourceforge.net/ftp/pcmcia-cs-${PV}.tar.gz"

inherit module

do_configure() {
	./Configure --kernel="${KERNEL_SOURCE}" --noprompt --sysv --nopnp --rcdir=${sysconfdir} --arch="${ARCH}" \
                    --srctree --nocardbus --ucc="${CC}" --ld="${LD}" --uflags="${CFLAGS}" --target=.
        oe_runmake HAS_XPM= FLIBS="" XMANDIR="" DIRS="cardmgr etc flash"
}

do_install() {
	install -d ${D}/${sbindir}
	for f in cardmgr/cardctl cardmgr/cardmgr cardmgr/ide_info cardmgr/ifport cardmgr/ifuser cardmgr/pcinitrd flash/ftl_check flash/ftl_format
	do
		install -m 0755 $f ${D}/${sbindir}/
	done
	install -d ${D}/${sysconfdir}/init.d \
		   ${D}/${sysconfdir}/pcmcia
	cp -a etc/* ${D}/${sysconfdir}/pcmcia/
	install -m 0755 etc/rc.pcmcia ${D}/${sysconfdir}/init.d/pcmcia
}

FILES_${PN} = "${sbindir} ${sysconfdir}"