diff --git a/nmap-4.20-nostrip.patch b/nmap-4.20-nostrip.patch new file mode 100644 index 0000000..690d9dd --- /dev/null +++ b/nmap-4.20-nostrip.patch @@ -0,0 +1,20 @@ +--- nmap-4.20/Makefile.in.lr 2007-01-30 14:19:01.000000000 +0100 ++++ nmap-4.20/Makefile.in 2007-01-30 14:19:38.000000000 +0100 +@@ -152,7 +152,7 @@ + + install-nmap: $(TARGET) + $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(nmapdatadir) +- $(INSTALL) -c -m 755 -s nmap $(DESTDIR)$(bindir)/nmap ++ $(INSTALL) -c -m 755 nmap $(DESTDIR)$(bindir)/nmap + $(INSTALL) -c -m 644 docs/$(TARGET).1 $(DESTDIR)$(mandir)/man1/$(TARGET).1 + $(INSTALL) -c -m 644 docs/nmap.xsl $(DESTDIR)$(nmapdatadir)/ + $(INSTALL) -c -m 644 docs/nmap.dtd $(DESTDIR)$(nmapdatadir)/ +@@ -167,7 +167,7 @@ + install-nmapfe: $(TARGETNMAPFE) + $(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(nmapdatadir) $(DESTDIR)$(deskdir) + @echo "If the next command fails -- you cannot use the X front end" +- -test -f nmapfe/nmapfe && $(INSTALL) -c -m 755 -s nmapfe/nmapfe $(DESTDIR)$(bindir)/nmapfe && rm -f $(DESTDIR)$(bindir)/xnmap && $(SHTOOL) mkln -f -s $(DESTDIR)$(bindir)/nmapfe $(DESTDIR)$(bindir)/xnmap && $(INSTALL) -c -m 644 nmapfe.desktop $(DESTDIR)$(deskdir)/nmapfe.desktop && $(INSTALL) -c -m 644 docs/nmapfe.1 $(DESTDIR)$(mandir)/man1/nmapfe.1 && $(INSTALL) -c -m 644 docs/xnmap.1 $(DESTDIR)$(mandir)/man1/xnmap.1 ++ -test -f nmapfe/nmapfe && $(INSTALL) -c -m 755 nmapfe/nmapfe $(DESTDIR)$(bindir)/nmapfe && rm -f $(DESTDIR)$(bindir)/xnmap && $(SHTOOL) mkln -f $(DESTDIR)$(bindir)/nmapfe $(DESTDIR)$(bindir)/xnmap && $(INSTALL) -c -m 644 nmapfe.desktop $(DESTDIR)$(deskdir)/nmapfe.desktop && $(INSTALL) -c -m 644 docs/nmapfe.1 $(DESTDIR)$(mandir)/man1/nmapfe.1 && $(INSTALL) -c -m 644 docs/xnmap.1 $(DESTDIR)$(mandir)/man1/xnmap.1 + + install: install-nmap $(INSTALLNMAPFE) + diff --git a/nmap.spec b/nmap.spec index 167e114..7909eb8 100644 --- a/nmap.spec +++ b/nmap.spec @@ -1,7 +1,7 @@ Summary: Network exploration tool and security scanner Name: nmap Version: 4.20 -Release: 1 +Release: 2%{?dist} License: GPL Group: Applications/System Source0: http://download.insecure.org/nmap/dist/%{name}-%{version}.tar.bz2 @@ -12,6 +12,7 @@ Patch0: inet_aton.patch Patch1: makefile.patch Patch3: nmap-3.81-noms.patch Patch4: nmap-4.03-mktemp.patch +Patch5: nmap-4.20-nostrip.patch URL: http://www.insecure.org/nmap/ BuildRoot: %{_tmppath}/%{name}-root Epoch: 2 @@ -39,6 +40,7 @@ be installed before installing nmap-frontend. %setup -q %patch3 -p1 -b .noms %patch4 -p1 +%patch5 -p1 %build %configure --with-libpcap=/usr @@ -87,6 +89,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/xnmap.1.gz %changelog +* Tue Jan 30 2007 Florian La Roche +- do not strip away debuginfo + * Tue Jan 09 2007 Florian La Roche - version 4.20