Add an option to build zenmap (not enabled by default)diff -r1.59 -r1.60 pkgsrc/net/nmap/Makefile
(adrianp)
@@ -1,53 +1,58 @@ | @@ -1,53 +1,58 @@ | |||
1 | # $NetBSD: Makefile,v 1.59 2008/06/08 18:12:52 adrianp Exp $ | 1 | # $NetBSD: Makefile,v 1.60 2008/06/09 19:35:31 adrianp Exp $ | |
2 | # | 2 | # | |
3 | 3 | |||
4 | DISTNAME= nmap-4.65 | 4 | DISTNAME= nmap-4.65 | |
5 | CATEGORIES= net security | 5 | CATEGORIES= net security | |
6 | MASTER_SITES= http://download.insecure.org/nmap/dist/ | 6 | MASTER_SITES= http://download.insecure.org/nmap/dist/ | |
7 | EXTRACT_SUFX= .tar.bz2 | 7 | EXTRACT_SUFX= .tar.bz2 | |
8 | 8 | |||
9 | MAINTAINER= adrianp@NetBSD.org | 9 | MAINTAINER= adrianp@NetBSD.org | |
10 | HOMEPAGE= http://insecure.org/nmap/ | 10 | HOMEPAGE= http://insecure.org/nmap/ | |
11 | COMMENT= Network/port scanner with OS detection | 11 | COMMENT= Network/port scanner with OS detection | |
12 | 12 | |||
13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | 13 | PKG_INSTALLATION_TYPES= overwrite pkgviews | |
14 | 14 | |||
15 | BUILDLINK_API_DEPENDS.libpcap= libpcap>=0.9.4 | 15 | BUILDLINK_API_DEPENDS.libpcap= libpcap>=0.9.4 | |
16 | BUILDLINK_API_DEPENDS.libpcre= libpcre>=6.7 | 16 | BUILDLINK_API_DEPENDS.libpcre= libpcre>=6.7 | |
17 | 17 | |||
18 | GNU_CONFIGURE= yes | 18 | GNU_CONFIGURE= yes | |
19 | USE_LANGUAGES= c c++ | 19 | USE_LANGUAGES= c c++ | |
20 | USE_LIBTOOL= yes | 20 | USE_LIBTOOL= yes | |
21 | USE_TOOLS+= gmake | 21 | USE_TOOLS+= gmake | |
22 | PLIST_SRC= ${WRKDIR}/.PLIST_SRC | |||
23 | ||||
24 | .include "options.mk" | |||
22 | 25 | |||
23 | CONFIGURE_ARGS+= --with-libpcap=${BUILDLINK_PREFIX.libpcap} | 26 | CONFIGURE_ARGS+= --with-libpcap=${BUILDLINK_PREFIX.libpcap} | |
24 | CONFIGURE_ARGS+= --with-libpcre=${BUILDLINK_PREFIX.pcre} | 27 | CONFIGURE_ARGS+= --with-libpcre=${BUILDLINK_PREFIX.pcre} | |
25 | CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} | 28 | CONFIGURE_ARGS+= --with-openssl=${BUILDLINK_PREFIX.openssl} | |
26 | CONFIGURE_ARGS+= --without-zenmap | |||
27 | 29 | |||
28 | .include "../../mk/bsd.prefs.mk" | 30 | .include "../../mk/bsd.prefs.mk" | |
29 | 31 | |||
30 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" | 32 | .if ${OPSYS} == "SunOS" || ${OPSYS} == "Linux" | |
31 | MAKE_ENV+= CPPFLAGS="" | 33 | MAKE_ENV+= CPPFLAGS="" | |
32 | .endif | 34 | .endif | |
33 | 35 | |||
34 | # The SunPro C++ compiler does not understand __FUNCTION__, as well as | 36 | # The SunPro C++ compiler does not understand __FUNCTION__, as well as | |
35 | # __func__. So __FILE__ is the nearest replacement. | 37 | # __func__. So __FILE__ is the nearest replacement. | |
36 | .include "../../mk/compiler.mk" | 38 | .include "../../mk/compiler.mk" | |
37 | .if !empty(PKGSRC_COMPILER:Msunpro) | 39 | .if !empty(PKGSRC_COMPILER:Msunpro) | |
38 | CFLAGS.SunOS+= -D__FUNCTION__=__FILE__ | 40 | CFLAGS.SunOS+= -D__FUNCTION__=__FILE__ | |
39 | .endif | 41 | .endif | |
40 | 42 | |||
41 | .if empty(PKGSRC_COMPILER:Mgcc) | 43 | .if empty(PKGSRC_COMPILER:Mgcc) | |
42 | # The Makefile uses a hard-coded option -MM to get the dependencies, which | 44 | # The Makefile uses a hard-coded option -MM to get the dependencies, which | |
43 | # is only understood by the GNU compiler. For a normal build the dependen- | 45 | # is only understood by the GNU compiler. For a normal build the dependen- | |
44 | # cies are not needed anyway, only when patching files and fixing bugs. | 46 | # cies are not needed anyway, only when patching files and fixing bugs. | |
45 | pre-build: | 47 | pre-build: | |
46 | ${ECHO} "# ignored" > ${WRKSRC}/makefile.dep | 48 | ${ECHO} "# ignored" > ${WRKSRC}/makefile.dep | |
47 | .endif | 49 | .endif | |
48 | 50 | |||
51 | post-build: | |||
52 | ${CP} ${PKGDIR}/PLIST ${WRKDIR}/.PLIST_SRC | |||
53 | ||||
49 | .include "../../devel/pcre/buildlink3.mk" | 54 | .include "../../devel/pcre/buildlink3.mk" | |
50 | .include "../../net/libpcap/buildlink3.mk" | 55 | .include "../../net/libpcap/buildlink3.mk" | |
51 | .include "../../security/openssl/buildlink3.mk" | 56 | .include "../../security/openssl/buildlink3.mk" | |
52 | 57 | |||
53 | .include "../../mk/bsd.pkg.mk" | 58 | .include "../../mk/bsd.pkg.mk" |
@comment $NetBSD: PLIST.zenmap,v 1.1 2008/06/09 19:35:31 adrianp Exp $
bin/nmapfe
bin/uninstall_zenmap
bin/xnmap
bin/zenmap
${PYSITELIB}/higwidgets/__init__.py
${PYSITELIB}/higwidgets/__init__.pyc
${PYSITELIB}/higwidgets/gtkutils.py
${PYSITELIB}/higwidgets/gtkutils.pyc
${PYSITELIB}/higwidgets/higboxes.py
${PYSITELIB}/higwidgets/higboxes.pyc
${PYSITELIB}/higwidgets/higbuttons.py
${PYSITELIB}/higwidgets/higbuttons.pyc
${PYSITELIB}/higwidgets/higdialogs.py
${PYSITELIB}/higwidgets/higdialogs.pyc
${PYSITELIB}/higwidgets/higentries.py
${PYSITELIB}/higwidgets/higentries.pyc
${PYSITELIB}/higwidgets/higexpanders.py
${PYSITELIB}/higwidgets/higexpanders.pyc
${PYSITELIB}/higwidgets/higframe.py
${PYSITELIB}/higwidgets/higframe.pyc
${PYSITELIB}/higwidgets/higlabels.py
${PYSITELIB}/higwidgets/higlabels.pyc
${PYSITELIB}/higwidgets/higlogindialogs.py
${PYSITELIB}/higwidgets/higlogindialogs.pyc
${PYSITELIB}/higwidgets/hignotebooks.py
${PYSITELIB}/higwidgets/hignotebooks.pyc
${PYSITELIB}/higwidgets/higprogressbars.py
${PYSITELIB}/higwidgets/higprogressbars.pyc
${PYSITELIB}/higwidgets/higscrollers.py
${PYSITELIB}/higwidgets/higscrollers.pyc
${PYSITELIB}/higwidgets/higspinner.py
${PYSITELIB}/higwidgets/higspinner.pyc
${PYSITELIB}/higwidgets/higtables.py
${PYSITELIB}/higwidgets/higtables.pyc
${PYSITELIB}/higwidgets/higtextviewers.py
${PYSITELIB}/higwidgets/higtextviewers.pyc
${PYSITELIB}/higwidgets/higwindows.py
${PYSITELIB}/higwidgets/higwindows.pyc
${PYSITELIB}/higwidgets/utils.py
${PYSITELIB}/higwidgets/utils.pyc
${PYSITELIB}/zenmapCore/BasePaths.py
${PYSITELIB}/zenmapCore/BasePaths.pyc
${PYSITELIB}/zenmapCore/BugRegister.py
${PYSITELIB}/zenmapCore/BugRegister.pyc
${PYSITELIB}/zenmapCore/Diff.py
${PYSITELIB}/zenmapCore/Diff.pyc
${PYSITELIB}/zenmapCore/DiffHtml.py
${PYSITELIB}/zenmapCore/DiffHtml.pyc
${PYSITELIB}/zenmapCore/GetConfigFile.py
${PYSITELIB}/zenmapCore/GetConfigFile.pyc
${PYSITELIB}/zenmapCore/I18N.py
${PYSITELIB}/zenmapCore/I18N.pyc
${PYSITELIB}/zenmapCore/Name.py
${PYSITELIB}/zenmapCore/Name.pyc
${PYSITELIB}/zenmapCore/NmapCommand.py
${PYSITELIB}/zenmapCore/NmapCommand.pyc
${PYSITELIB}/zenmapCore/NmapOptions.py
${PYSITELIB}/zenmapCore/NmapOptions.pyc
${PYSITELIB}/zenmapCore/NmapParser.py
${PYSITELIB}/zenmapCore/NmapParser.pyc
${PYSITELIB}/zenmapCore/OSList.py
${PYSITELIB}/zenmapCore/OSList.pyc
${PYSITELIB}/zenmapCore/OSListDump.py
${PYSITELIB}/zenmapCore/OSListDump.pyc
${PYSITELIB}/zenmapCore/OptionsConf.py
${PYSITELIB}/zenmapCore/OptionsConf.pyc
${PYSITELIB}/zenmapCore/Paths.py
${PYSITELIB}/zenmapCore/Paths.pyc
${PYSITELIB}/zenmapCore/ProfileEditorConf.py
${PYSITELIB}/zenmapCore/ProfileEditorConf.pyc
${PYSITELIB}/zenmapCore/RecentScans.py
${PYSITELIB}/zenmapCore/RecentScans.pyc
${PYSITELIB}/zenmapCore/ScanProfileConf.py
${PYSITELIB}/zenmapCore/ScanProfileConf.pyc
${PYSITELIB}/zenmapCore/SearchResult.py
${PYSITELIB}/zenmapCore/SearchResult.pyc
${PYSITELIB}/zenmapCore/ServiceList.py
${PYSITELIB}/zenmapCore/ServiceList.pyc
${PYSITELIB}/zenmapCore/ServicesDump.py
${PYSITELIB}/zenmapCore/ServicesDump.pyc
${PYSITELIB}/zenmapCore/TargetList.py
${PYSITELIB}/zenmapCore/TargetList.pyc
${PYSITELIB}/zenmapCore/TempConf.py
${PYSITELIB}/zenmapCore/TempConf.pyc
${PYSITELIB}/zenmapCore/UmitConf.py
${PYSITELIB}/zenmapCore/UmitConf.pyc
${PYSITELIB}/zenmapCore/UmitConfigParser.py
${PYSITELIB}/zenmapCore/UmitConfigParser.pyc
${PYSITELIB}/zenmapCore/UmitDB.py
${PYSITELIB}/zenmapCore/UmitDB.pyc
${PYSITELIB}/zenmapCore/UmitLogging.py
${PYSITELIB}/zenmapCore/UmitLogging.pyc
${PYSITELIB}/zenmapCore/UmitOptionParser.py
${PYSITELIB}/zenmapCore/UmitOptionParser.pyc
${PYSITELIB}/zenmapCore/UserConf.py
${PYSITELIB}/zenmapCore/UserConf.pyc
${PYSITELIB}/zenmapCore/Version.py
${PYSITELIB}/zenmapCore/Version.pyc
${PYSITELIB}/zenmapCore/WizardConf.py
${PYSITELIB}/zenmapCore/WizardConf.pyc
${PYSITELIB}/zenmapCore/__init__.py
${PYSITELIB}/zenmapCore/__init__.pyc
${PYSITELIB}/zenmapGUI/About.py
${PYSITELIB}/zenmapGUI/About.pyc
${PYSITELIB}/zenmapGUI/App.py
${PYSITELIB}/zenmapGUI/App.pyc
${PYSITELIB}/zenmapGUI/BugReport.py
${PYSITELIB}/zenmapGUI/BugReport.pyc
${PYSITELIB}/zenmapGUI/CrashReport.py
${PYSITELIB}/zenmapGUI/CrashReport.pyc
${PYSITELIB}/zenmapGUI/DiffCompare.py
${PYSITELIB}/zenmapGUI/DiffCompare.pyc
${PYSITELIB}/zenmapGUI/FileChoosers.py
${PYSITELIB}/zenmapGUI/FileChoosers.pyc
${PYSITELIB}/zenmapGUI/Icons.py
${PYSITELIB}/zenmapGUI/Icons.pyc
${PYSITELIB}/zenmapGUI/MainWindow.py
${PYSITELIB}/zenmapGUI/MainWindow.pyc
${PYSITELIB}/zenmapGUI/NmapOutputProperties.py
${PYSITELIB}/zenmapGUI/NmapOutputProperties.pyc
${PYSITELIB}/zenmapGUI/NmapOutputViewer.py
${PYSITELIB}/zenmapGUI/NmapOutputViewer.pyc
${PYSITELIB}/zenmapGUI/OSCombo.py
${PYSITELIB}/zenmapGUI/OSCombo.pyc
${PYSITELIB}/zenmapGUI/OptionBuilder.py
${PYSITELIB}/zenmapGUI/OptionBuilder.pyc
${PYSITELIB}/zenmapGUI/OptionCombo.py
${PYSITELIB}/zenmapGUI/OptionCombo.pyc
${PYSITELIB}/zenmapGUI/ProfileCombo.py
${PYSITELIB}/zenmapGUI/ProfileCombo.pyc
${PYSITELIB}/zenmapGUI/ProfileEditor.py
${PYSITELIB}/zenmapGUI/ProfileEditor.pyc
${PYSITELIB}/zenmapGUI/ScanHostDetailsPage.py
${PYSITELIB}/zenmapGUI/ScanHostDetailsPage.pyc
${PYSITELIB}/zenmapGUI/ScanHostsView.py
${PYSITELIB}/zenmapGUI/ScanHostsView.pyc
${PYSITELIB}/zenmapGUI/ScanNmapOutputPage.py
${PYSITELIB}/zenmapGUI/ScanNmapOutputPage.pyc
${PYSITELIB}/zenmapGUI/ScanNotebook.py
${PYSITELIB}/zenmapGUI/ScanNotebook.pyc
${PYSITELIB}/zenmapGUI/ScanOpenPortsPage.py
${PYSITELIB}/zenmapGUI/ScanOpenPortsPage.pyc
${PYSITELIB}/zenmapGUI/ScanRunDetailsPage.py
${PYSITELIB}/zenmapGUI/ScanRunDetailsPage.pyc
${PYSITELIB}/zenmapGUI/ScanToolbar.py
${PYSITELIB}/zenmapGUI/ScanToolbar.pyc
${PYSITELIB}/zenmapGUI/Search.py
${PYSITELIB}/zenmapGUI/Search.pyc
${PYSITELIB}/zenmapGUI/SearchGUI.py
${PYSITELIB}/zenmapGUI/SearchGUI.pyc
${PYSITELIB}/zenmapGUI/SearchWindow.py
${PYSITELIB}/zenmapGUI/SearchWindow.pyc
${PYSITELIB}/zenmapGUI/ServiceCombo.py
${PYSITELIB}/zenmapGUI/ServiceCombo.pyc
${PYSITELIB}/zenmapGUI/Splash.py
${PYSITELIB}/zenmapGUI/Splash.pyc
${PYSITELIB}/zenmapGUI/TargetCombo.py
${PYSITELIB}/zenmapGUI/TargetCombo.pyc
${PYSITELIB}/zenmapGUI/Wizard.py
${PYSITELIB}/zenmapGUI/Wizard.pyc
${PYSITELIB}/zenmapGUI/__init__.py
${PYSITELIB}/zenmapGUI/__init__.pyc
man/man1/zenmap.1
share/icons/nmap-eye.ico
share/pixmaps/default.svg
share/pixmaps/default_32.png
share/pixmaps/default_75.png
share/pixmaps/freebsd.svg
share/pixmaps/freebsd_32.png
share/pixmaps/freebsd_75.png
share/pixmaps/irix.svg
share/pixmaps/irix_32.png
share/pixmaps/irix_75.png
share/pixmaps/linux.svg
share/pixmaps/linux_32.png
share/pixmaps/linux_75.png
share/pixmaps/macosx.svg
share/pixmaps/macosx_32.png
share/pixmaps/macosx_75.png
share/pixmaps/openbsd.svg
share/pixmaps/openbsd_32.png
share/pixmaps/openbsd_75.png
share/pixmaps/redhat.svg
share/pixmaps/redhat_32.png
share/pixmaps/redhat_75.png
share/pixmaps/shadow_man.svg
share/pixmaps/shadow_man_32.png
share/pixmaps/shadow_man_75.png
share/pixmaps/solaris.svg
share/pixmaps/solaris_32.png
share/pixmaps/solaris_75.png
share/pixmaps/splash.png
share/pixmaps/ubuntu.svg
share/pixmaps/ubuntu_32.png
share/pixmaps/ubuntu_75.png
share/pixmaps/unknown.svg
share/pixmaps/unknown_32.png
share/pixmaps/unknown_75.png
share/pixmaps/vl_1.svg
share/pixmaps/vl_1_32.png
share/pixmaps/vl_1_75.png
share/pixmaps/vl_2.svg
share/pixmaps/vl_2_32.png
share/pixmaps/vl_2_75.png
share/pixmaps/vl_3.svg
share/pixmaps/vl_3_32.png
share/pixmaps/vl_3_75.png
share/pixmaps/vl_4.svg
share/pixmaps/vl_4_32.png
share/pixmaps/vl_4_75.png
share/pixmaps/vl_5.svg
share/pixmaps/vl_5_32.png
share/pixmaps/vl_5_75.png
share/pixmaps/win.svg
share/pixmaps/win_32.png
share/pixmaps/win_75.png
share/pixmaps/wizard_logo.png
share/zenmap/config/scan_profile.usp
share/zenmap/config/zenmap.conf
share/zenmap/config/zenmap_version
share/zenmap/docs/help.html
share/zenmap/locale/pt_BR/LC_MESSAGES/umit.mo
share/zenmap/misc/options.xml
share/zenmap/misc/os_db.dmp
share/zenmap/misc/profile_editor.xml
share/zenmap/misc/services.dmp
share/zenmap/misc/wizard.xml
@dirrm share/zenmap/misc
@dirrm share/zenmap/locale/pt_BR/LC_MESSAGES
@dirrm share/zenmap/locale/pt_BR
@dirrm share/zenmap/locale
@dirrm share/zenmap/docs
@dirrm share/zenmap/config
@dirrm share/zenmap
@dirrm ${PYSITELIB}/zenmapGUI
@dirrm ${PYSITELIB}/zenmapCore
@dirrm ${PYSITELIB}/higwidgets
# $NetBSD: options.mk,v 1.1 2008/06/09 19:35:31 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.nmap
PKG_SUPPORTED_OPTIONS= zenmap
.include "../../mk/bsd.options.mk"
###
### Enable dynamically loadable preprocessors, detection engine
### and rules libraries.
###
.if !empty(PKG_OPTIONS:Mzenmap)
CONFIGURE_ARGS+= --with-zenmap
PLIST_SRC+= ${PKGDIR}/PLIST.zenmap
PYTHON_VERSIONS_ACCEPTED= 25 24
PY_PATCHPLIST= yes
.include "../../lang/python/application.mk"
.include "../../lang/python/extension.mk"
.include "../../x11/py-gtk2/buildlink3.mk"
.include "../../databases/py-sqlite2/buildlink3.mk"
.include "../../textproc/py-xml/buildlink3.mk"
.else
CONFIGURE_ARGS+= --without-zenmap
.endif