pkg_postinst () {
set -e
- if [ X"$1" != Xconfigure ]; then
- exit 0
- fi
-
- if ! [ -x ${sbindir}/update-passwd ]; then
- echo >&2 "`dirname $0`: ${sbindir}/update-passwd does not exist,"
- echo >&2 "or is not executable"
- exit 1
- fi
+# if [ X"$1" != Xconfigure ]; then
+# exit 0
+# fi
if [ ! -e ${D}/${sysconfdir}/passwd ] ; then
cp ${D}/${datadir}/base-passwd/passwd.master ${D}/${sysconfdir}/passwd
cp ${D}/${datadir}/base-passwd/group.master ${D}/${sysconfdir}/group
fi
+# if ! [ -x ${sbindir}/update-passwd ]; then
+# echo >&2 "`dirname $0`: ${sbindir}/update-passwd does not exist,"
+# echo >&2 "or is not executable"
+# exit 1
+# fi
# update-passwd -p ${D}/${datadir}/base-passwd/passwd.master \
# -g ${D}/${datadir}/base-passwd/group.master \
# -P ${D}/${sysconfdir}/passwd \
DEPENDS = virtual/libc openssl ncurses
RDEPENDS = libc6 openssl ncurses
-SRC_URI = http://thekonst.net/download/centericq-4.9.7.tar.bz2 \
+SRC_URI = http://centericq.de/archive/source/releases/centericq-${PV}.tar.bz2 \
file://${FILESDIR}/configure.patch;patch=1 \
file://${FILESDIR}/m4.patch;patch=1
+DEPENDS = virtual/libc
+RDEPENDS = libc6
+
+SRC_URI = http://www.us.kernel.org/pub/linux/utils/kernel/hotplug/diethotplug-${PV}.tar.gz
+
+export KLIBC=
+do_compile () {
+ perl convert_usb.pl ${FILESDIR}/modules.usbmap > usb_modules.h
+ perl convert_pci.pl ${FILESDIR}/modules.pcimap > pci_modules.h
+ perl convert_ieee1394.pl ${FILESDIR}/modules.ieee1394map > ieee1394_modules.h
+ oe_runmake
+}
+
+do_install () {
+ install -d ${D}/${sbindir}
+ install -m 0755 hotplug ${D}/${sbindir}/
+}
RDEPENDS = libc6 libpcap
DESCRIPTION = Nmap is a command line portscanner.
-SRC_URI = http://download.insecure.org/nmap/dist/nmap-${PV}.tgz \
- ${DEBIAN_MIRROR}/main/n/nmap/nmap_${PV}-1.diff.gz
+SRC_URI = http://download.insecure.org/nmap/dist/nmap-${PV}.tgz
inherit autotools
+DEPENDS = virtual/libc libpcap
+RDEPENDS = libc6 libpcap
+DESCRIPTION = Nmap is a command line portscanner.
+
+SRC_URI = http://download.insecure.org/nmap/dist/nmap-${PV}.tgz
+
+inherit autotools
+
+EXTRA_OECONF = --with-pcap=linux --with-libpcap=${STAGING_DIR} --without-nmapfe
+EXTRA_OEMAKE = "STRIPPROG=arm-linux-strip"
+
+CXXFLAGS_append = " -fpermissive"
+# Ugly hack follows -- their configure.ac doesnt match their configure ..
+# doesnt include a check for the length type in recvfrom, so we hack it here
+CPPFLAGS_append = " -Drecvfrom6_t=socklen_t"
+
+#do_configure_prepend () {
+# if [ ! -e libpcap-possiblymodified/acinclude.m4 ]; then
+# cat libpcap-possiblymodified/aclocal.m4 > libpcap-possiblymodified/acinclude.m4
+# fi
+#}
+
+do_compile_prepend () {
+ ${BUILD_CC} ${BUILD_CFLAGS} ${BUILD_LDFLAGS} libpcre/dftables.c -o libpcre/dftables
+ touch libpcre/dftables.o
+ libpcre/dftables > libpcre/chartables.c
+}
+
+do_configure () {
+# override this function to avoid the autoconf/automake/aclocal/autoheader
+# calls for now
+ oe_runconf
+}
+
+
+do_install () {
+ oe_runmake 'prefix=${D}/${prefix}' \
+ 'exec_prefix=${D}/${exec_prefix}' \
+ 'bindir=${D}/${bindir}' \
+ 'sbindir=${D}/${sbindir}' \
+ 'mandir=${D}/${mandir}' \
+ 'datadir=${D}/${datadir}' \
+ 'nmapdatadir=${D}/${datadir}/nmap' \
+ install
+}