Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Apr 2009 10:47:11 -0400
From:      APseudoUtopia <apseudoutopia@gmail.com>
To:        =?UTF-8?Q?Aur=C3=A9lien_Ansel?= <aurelien.ansel@netasq.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Problem with make config and OPTIONS
Message-ID:  <27ade5280904290747o63e0b5dqd714637f08496e64@mail.gmail.com>
In-Reply-To: <49F86241.2070707@netasq.com>
References:  <49F86241.2070707@netasq.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 29, 2009 at 10:20 AM, Aur=C3=A9lien Ansel
<aurelien.ansel@netasq.com> wrote:
> Hi,
> (sorry for my poor english)
>
> I have a problem, I'm trying to upgrade an existing port (net/scapy) , I
> have done some changes in the Makefile but when I test the command 'make
> config' I have :
>
> =C2=A0 =3D=3D=3D> Options unchanged
>
> I haven't the dialog box with the differents kinds of Options that are
> written in the Makefile, i have try the 'make rmconfig' but no change.
> I am working on my personnal directory, not in /usr/ports/...
>
> The Makefile is:
>
> # New ports collection makefile for: =C2=A0 =C2=A0scapy
> # Date created: =C2=A0 =C2=A0 =C2=A0 =C2=A008 dec 2005
> # Whom: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0vanhu <vanhu@netasq.com>
> #
> # $FreeBSD: ports/net/scapy/Makefile,v 1.6 2008/11/19 20:41:56 lwhsu Exp =
$
> #
> # TODO: - configurable --enable-xxx for various additional dependancies
>
> PORTNAME=3D =C2=A0 =C2=A0scapy
> PORTVERSION=3D =C2=A0 =C2=A02.0.0.10
> CATEGORIES=3D =C2=A0 =C2=A0net
> MASTER_SITES=3D =C2=A0 =C2=A0http://secdev.org/projects/scapy/files/
>
> MAINTAINER=3D =C2=A0 =C2=A0vanhu@netasq.com
> COMMENT=3D =C2=A0 =C2=A0Powerful interactive packet manipulation program =
in python
>
> RUN_DEPENDS=3D =C2=A0 =C2=A0${PYTHON_SITELIBDIR}/dnet.so:${PORTSDIR}/net/=
py-libdnet \
> =C2=A0 =C2=A0 =C2=A0 ${PYTHON_SITELIBDIR}/pcap.py:${PORTSDIR}/net/py-pcap
>
> MAN1=3D =C2=A0 =C2=A0 =C2=A0 =C2=A0scapy.1
> MANCOMPRESSED=3D =C2=A0 =C2=A0yes
>
> USE_PYTHON=3D =C2=A0 =C2=A02.5+
> USE_PYDISTUTILS=3Dyes
>
> OPTIONS=3D =C2=A0 =C2=A0PYX "Support for PostScript and PDF graphs drawin=
g" off \
> =C2=A0 =C2=A0 =C2=A0 PYCRYPTO "Support for py-crypto for WEP decoding" of=
f \
> =C2=A0 =C2=A0 =C2=A0 PYGNUPLOT "Support for py-gnuplot wrapper to plot gr=
aphs" off \
> =C2=A0 =C2=A0 =C2=A0 P0F_BASE "Support for p0f OS signatures database" of=
f \
> =C2=A0 =C2=A0 =C2=A0 QUESO_BASE "Support for queso OS signatures database=
" off \
> =C2=A0 =C2=A0 =C2=A0 NMAP "Support for nmap OS signatures database" off \
> =C2=A0 =C2=A0 =C2=A0 MANUF "Support for wireshark's MANUF MAC database" o=
ff
>
> .include <bsd.port.pre.mk>
>
> .if defined(WITH_PYX)
> RUN_DEPENDS+=3D
> =C2=A0${PYTHON_SITELIBDIR}/pyx/__init__.py:${PORTSDIR}/graphics/py-PyX
> .endif
>
> .if defined(WITH_PYCRYPTO)
> RUN_DEPENDS+=3D
> =C2=A0${PYTHON_SITELIBDIR}/Crypto/__init__.py:${PORTSDIR}/security/py-pyc=
rypto
> .endif
>
> .if defined(WITH_PYGNUPLOT)
> RUN_DEPENDS+=3D
> =C2=A0${PYTHON_SITELIBDIR}/Gnuplot/__init__.py:${PORTSDIR}/math/py-gnuplo=
t
> .endif
>
> .if defined(WITH_P0F_BASE)
> RUN_DEPENDS+=3D =C2=A0 =C2=A0${LOCALBASE}/etc/p0f/p0f.fp:${PORTSDIR}/net-=
mgmt/p0f
> .endif
>
> .if defined(WITH_QUESO_BASE)
> RUN_DEPENDS+=3D =C2=A0 =C2=A0${LOCALBASE}/etc/queso.conf:${PORTSDIR}/net/=
queso
> .endif
>
> .if defined(WITH_NMAP)
> RUN_DEPENDS+=3D
> =C2=A0${LOCALBASE}/share/nmap/nmap-os-fingerprints:${PORTSDIR}/security/n=
map
> .endif
>
> .if defined(WITH_MANUF)
> RUN_DEPENDS+=3D
> =C2=A0${LOCALBASE}/share/wireshark/manuf:${PORTSDIR}/net/wireshark
> .endif
>
> SCAPY_MODULES=3D =C2=A0 =C2=A0nmap.py p0f.py queso.py
>
> post-patch:
> =C2=A0 @${REINPLACE_CMD} "s,share/man/man1,man/man1," ${WRKSRC}/setup.py
> =C2=A0 @${REINPLACE_CMD} "s,%%LOCALBASE%%,${LOCALBASE}," \
> =C2=A0 =C2=A0 =C2=A0 ${SCAPY_MODULES:S,^,${WRKSRC}/scapy/modules/,} \
> =C2=A0 =C2=A0 =C2=A0 ${WRKSRC}/scapy/config.py \
> =C2=A0 =C2=A0 =C2=A0 ${WRKSRC}/scapy/utils6.py
>
> .include <bsd.port.post.mk>
>
>
>
>
> - Aur=C3=A9lien Ansel

The port options are stored in /var/db/ports. You can delete the
"options" file for your package from that dir. There's also ways to
force the configuration of files using portupgrade/portmaster. For
portmaster, the command is "portmaster --force-config". I don't know
about portupgrade.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27ade5280904290747o63e0b5dqd714637f08496e64>