2012-10-15 18:21:11 +02:00
|
|
|
# Created by: ijliao
|
2003-01-29 05:17:37 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gspoof
|
2003-12-25 16:27:12 +01:00
|
|
|
PORTVERSION= 3.2
|
2013-02-18 22:13:02 +01:00
|
|
|
PORTREVISION= 15
|
2003-01-29 05:17:37 +01:00
|
|
|
CATEGORIES= net
|
2009-08-22 02:32:25 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/Gspoof-3/${PORTVERSION}
|
2003-01-29 05:17:37 +01:00
|
|
|
|
2012-10-15 18:21:11 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 20:00:52 +01:00
|
|
|
COMMENT= Console/GTK+ TCP/IP Packets Forger
|
2003-01-29 05:17:37 +01:00
|
|
|
|
2013-02-18 22:13:02 +01:00
|
|
|
LIB_DEPENDS= net:${PORTSDIR}/net/libnet
|
2003-01-29 05:17:37 +01:00
|
|
|
|
2011-08-11 21:20:17 +02:00
|
|
|
USE_GNOME= gtk20
|
2003-08-30 19:04:34 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2007-01-31 15:09:55 +01:00
|
|
|
|
|
|
|
LIBNET_CONFIG?= ${LOCALBASE}/bin/libnet11-config
|
2003-01-29 05:17:37 +01:00
|
|
|
|
2013-09-21 00:10:23 +02:00
|
|
|
NO_STAGE= yes
|
2003-01-29 05:17:37 +01:00
|
|
|
post-patch:
|
2007-01-31 15:09:55 +01:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|-Wall -O2|$${CFLAGS}|g; \
|
|
|
|
s|libnet-config|${LIBNET_CONFIG}|' \
|
|
|
|
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
2003-08-30 19:04:34 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-Wall -O2|@CFLAGS@|g' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share|g ; \
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
s|/usr/share|${LOCALBASE}/share|g' ${WRKSRC}/gtk.c
|
2003-01-29 05:17:37 +01:00
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/gspoof ${PREFIX}/bin
|
2003-08-30 19:04:34 +02:00
|
|
|
@${MKDIR} ${DATADIR}/pixmap
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/pixmap/icon.png ${DATADIR}/pixmap
|
2003-05-12 10:12:41 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.endif
|
2003-01-29 05:17:37 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|