9b2681ab59
wistumbler2 in two packages: wistumbler2, with console support only, and wistumbler2-gtk, with GTK2 and console support. This provides a choice for users of binary packages and lets us catch build problems in both cases during bulk builds. While here, fix several issues: - In the GTK case, depend on pkg-config, needed during the build. - Patch files during pre-configure, not post-patch. - Fix the CONF_FILES stuff; it was pointing to non-existent files. - Reword DESCR. Because of these changes, that affect the binary package, bump the revision of wistumbler2 to 1, thus resulting in 2.00pre9nb1. The new wistumbler2-gtk package is at version 2.00pre9.
41 lines
1.2 KiB
Text
41 lines
1.2 KiB
Text
# $NetBSD: Makefile.common,v 1.1 2004/11/07 21:44:22 jmmv Exp $
|
|
#
|
|
|
|
DISTNAME= wistumbler2.00-pre9
|
|
PKGNAME= ${DISTNAME:S/wistumbler/wistumbler-/}
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://ftp.nopcode.org/prj/wistumbler2/
|
|
|
|
MAINTAINER= pancake@phreaker.net
|
|
HOMEPAGE= http://www.nopcode.org/?t=wistumbler2
|
|
COMMENT= Fork of original WaveLAN/IEEE network stumbler
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../../net/wistumbler2/distinfo
|
|
PATCHDIR= ${.CURDIR}/../../net/wistumbler2/patches
|
|
PLIST_SRC= ${.CURDIR}/../../net/wistumbler2/PLIST
|
|
|
|
NOT_FOR_PLATFORM= NetBSD-[01].[012345]*-*
|
|
ONLY_FOR_PLATFORM= NetBSD-*-* FreeBSD-*-* OpenBSD-*-*
|
|
|
|
HAS_CONFIGURE= YES
|
|
MANCOMPRESSED= YES
|
|
USE_BUILDLINK3= YES
|
|
USE_PKGINSTALL= YES
|
|
|
|
CONFIGURE_ENV+= PREFIX=${PREFIX}
|
|
|
|
CONF_FILES= ${PREFIX}/share/examples/wistumbler2/wistumbler2.conf \
|
|
${PKG_SYSCONFDIR}/wistumbler2.conf
|
|
|
|
SUBST_CLASSES+= conf
|
|
SUBST_STAGE.conf= pre-configure
|
|
SUBST_FILES.conf= src/userconf.c
|
|
SUBST_SED.conf= -e "s|/etc|${PKG_SYSCONFDIR}|g"
|
|
SUBST_MESSAGE.conf= "Fixing path to configuration files."
|
|
|
|
post-extract:
|
|
${CHMOD} ${PKGDIRMODE} ${WRKSRC}/doc
|
|
${CHMOD} ${PKGDIRMODE} ${WRKSRC}/img
|
|
|
|
.include "../../net/libpcap/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|