By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 512

Summary: Knmap: Missing package
Product: TDE Reporter: eseesehache
Component: tdenetworkAssignee: Francois Andriot <albator78>
Status: RESOLVED FIXED    
Severity: needs packaging CC: albator78, bugwatch, darrella, kb9vqf, slavek.banko
Priority: P5    
Version: 3.5.12 [Trinity]   
Hardware: Other   
OS: Debian Squeeze   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: knmap : fix FTBFS in trinity

Description eseesehache 2011-09-16 04:40:58 CDT
Hello everybody.

I didn't found a kde program that was available on Lenny, so I report here so it can be tracked:

---------------------------------

Knmap is a KDE-based interface to the 'nmap' facility available at http://www.insecure.org/nmap.

The main Knmap window provides for the entry of nmap options and the display of nmap-generated output.

This program is a complete re-write of one by the same name written by Alexandre Sagala. The last version of that program was 0.9 which was released on 2003-03-09 and targeted the KDE 2.2 and QT 2.3 environments. Unfortunately it does not compile on today's KDE / QT environments.

Nmap ("Network Mapper") is a utility for network exploration or security auditing. It supports ping scanning (determine which hosts are up), many port scanning techniques, version detection, and TCP/IP fingerprinting. 

---------------------------------

Latest versions I found (Debian tells last release was from 2003, but it could be built on Lenny, so it may be feasible).

URL (Debian): http://packages.debian.org/lenny/knmap
URL (Ubuntu): http://packages.ubuntu.com/maverick/knmap


Best regards, and thanks for this great project!
Comment 1 Darrell 2013-05-22 20:29:12 CDT
Is this report still valid?
Comment 2 Francois Andriot 2013-07-24 11:08:05 CDT
Created attachment 1379 [details]
knmap : fix FTBFS in trinity

Built and working in R14 / TQT3.

Original tarball:
http://downloads.sourceforge.net/project/knmap/knmap/2.1/knmap-2.1.tar.bz2

Patch: see attachment

Then run:

# Extract upstream package
cd ~/src
rm -rf knmap-2.1
tar xfj knmap-2.1.tar.bz2
cd knmap-2.1

# Patch
patch -p1 < knmap-2.1-trinity.patch

# Remove KDE3/debian stuff
rm -rf admin

# Convert QT3 to TQT3
~/tde/tde_r14/experimental/qt3-tqt3/convert_existing_qt3_app_to_tqt3

# Convert KDE3 to TDE
find ./ -type f \( -name "*.cpp" -o -name "*.h" \) -print0 |\
xargs -r0 sed -i \
  -e "s|kcmdlineargs.h|tdecmdlineargs.h|g" \
  -e "s|kapplication.h|tdeapplication.h|g" \
  -e "s|kaboutdata.h|tdeaboutdata.h|g" \
  -e "s|khtml_part.h|tdehtml_part.h|g" \
  -e "s|khtmlview.h|tdehtmlview.h|g" \
  -e "s|klocale.h|tdelocale.h|g" \
  -e "s|kfiledialog.h|tdefiledialog.h|g" \
  -e "s|kconfigdialog.h|tdeconfigdialog.h|g" \
  -e "s|kwin.h|twin.h|g" \
  -e "s|kconfig.h|tdeconfig.h|g" \
  -e "s|kaction.h|tdeaction.h|g" \
  -e "s|kpopupmenu.h|tdepopupmenu.h|g" \
  -e "s|kglobal.h|tdeglobal.h|g" \
  -e "s|kglobalsettings.h|tdeglobalsettings.h|g" \
  -e "s|kmessagebox.h|tdemessagebox.h|g" \
  -e "s|kmainwindow.h|tdemainwindow.h|g" \
  -e "s|KConfig|TDEConfig|g" \
  -e "s|kaboutapplication.h|tdeaboutapplication.h|g" \
  -e "s|KPopupMenu|TDEPopupMenu|g" \
  -e "s|KProcess|TDEProcess|g" \
  -e "s|KCmdLineOptions|TDECmdLineOptions|g" \
  -e "s|KCmdLineArgs|TDECmdLineArgs|g" \
  -e "s|KCmdLineLastOption|TDECmdLineLastOption|g" \
  -e "s|KAboutData|TDEAboutData|g" \
  -e "s|KMainWindow|TDEMainWindow|g" \
  -e "s|KGlobal|TDEGlobal|g" \
  -e "s|KAboutApplication|TDEAboutApplication|g" \
  -e "s|KIcon|TDEIcon|g" \
  -e "s|KAction|TDEAction|g" \
  -e "s|KToggleAction|TDEToggleAction|g" \
  -e "s|NEKWinInfo|NETWinInfo|g" \
  -e "s|KApplication|TDEApplication|g" \
  -e "s|KHTMLPart|TDEHTMLPart|g" \
  -e "s|kio/|tdeio/|g" \
  -e "s|KStandardDirs|TDEStandardDirs|g"

find ./ -type f \( -name "*.am" \) -print0 |\
xargs -r0 sed -i \
  -e "s|KDE_|TDE_|g" \
  -e "s|^TDE_DOCS|KDE_DOCS|g" \
  -e "s|^TDE_LANG|KDE_LANG|g" \
  -e "s|^TDE_ICON|KDE_ICON|g" \
  -e "s|_KDE|_TDE|g" \
  -e "s|_KHTML|_TDEHTML|g" \
  -e "s|_QT|_TQT|g" \
  -e "s|-lkde|-ltde|g"


# Now, the sources are ready !

# Generates makefiles ...

cp -rf ~/tde/tde_r14/main/common/admin/ .

cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
cp -f "/usr/share/libtool/config/ltmain.sh" "admin/ltmain.sh" || cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
make -f "admin/Makefile.common"

# And build ...
unset QTDIR QTINC QTLIB
export PATH="/opt/trinity/bin:/usr/lib64/ccache:/usr/bin:/bin"
export LDFLAGS="-L/opt/trinity/lib64 -I/opt/trinity/include"

./configure \
	--build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --target=x86_64-redhat-linux-gnu \
	--prefix=/opt/trinity \
	--exec-prefix=/opt/trinity \
	--disable-dependency-tracking \
	--disable-rpath \
	--bindir=/opt/trinity/bin \
	--libdir=/opt/trinity/lib64 \
	--datadir=/opt/trinity/share \
	--includedir=/opt/trinity/include/tde \
	--enable-closure

make
Comment 3 Timothy Pearson 2013-07-24 11:41:52 CDT
New GIT repository is available at     
git clone http://scm.trinitydesktop.org/scm/git/knmap

Debian/Ubuntu packaging files have been added to the tde-packaging repository.

cgit, the master GIT repository, and the autobuild system have not yet been
updated.
Comment 4 Francois Andriot 2013-07-24 14:11:08 CDT
Build OK from GIT.
Comment 5 Timothy Pearson 2013-07-24 18:45:42 CDT
cgit, the master GIT repository, and the autobuild system have now been updated.  Marking NEEDSINFO pending results of autobuilds on build farm.
Comment 6 Francois Andriot 2013-07-25 07:13:11 CDT
Icon incorrectly installed because "src/Makefile.am" contains "TDE_ICON" instead of "KDE_ICON".
Comment 7 Francois Andriot 2013-07-25 09:08:22 CDT
FTBFS in recent distro because in "src/Makefile.am", there is a $(LIB_TQT) which should be $(LIB_QT) .
Comment 8 Slávek Banko 2013-07-26 19:37:59 CDT
Debian/Ubuntu packaging files are ready for build.
Comment 9 Francois Andriot 2013-07-27 02:46:19 CDT
(En réponse au commentaire 7)
> FTBFS in recent distro because in "src/Makefile.am", there is a $(LIB_TQT)
> which should be $(LIB_QT) .

Problem still present in knmap...
Comment 10 Slávek Banko 2013-07-27 05:47:44 CDT
(Odpověď na komentář #9)
> (En réponse au commentaire 7)
> > FTBFS in recent distro because in "src/Makefile.am", there is a $(LIB_TQT)
> > which should be $(LIB_QT) .
> 
> Problem still present in knmap...

Fixed in GIT hash c7e78cd2.
Thank you for notice.
Comment 11 Slávek Banko 2013-07-29 19:18:09 CDT
Thank you all for your efforts in preparing the package.
The package seems to be ready.