From: luzik Date: Sat, 11 Dec 2004 23:34:52 +0000 (+0000) Subject: - initial PLD release X-Git-Tag: AC-STABLE~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Famap.git;a=commitdiff_plain;h=7f28940cfc546c75fe7e2c883c9b71b421c3a633 - initial PLD release Changed files: amap-destdir.patch -> 1.1 amap-path.patch -> 1.1 amap.spec -> 1.1 --- 7f28940cfc546c75fe7e2c883c9b71b421c3a633 diff --git a/amap-destdir.patch b/amap-destdir.patch new file mode 100644 index 0000000..1737b34 --- /dev/null +++ b/amap-destdir.patch @@ -0,0 +1,17 @@ +--- amap-4.7/Makefile.am.fix 2004-12-11 22:05:34.373145128 +0000 ++++ amap-4.7/Makefile.am 2004-12-11 22:07:04.351466344 +0000 +@@ -28,10 +28,10 @@ + $(CC) $(OPT_DEBUG) -o amapcrap amapcrap.c $(XLIBS) $(XLIBPATHS) $(XIPATHS) $(XDEFINES) + + install: all +- @echo Installing to $(PREFIX)$(DIR), change this by running ./configure --prefix=path +- -mkdir -vp $(PREFIX)$(DIR) 2> /dev/null +- cp amap amapcrap $(SCRIPTS) $(PREFIX)$(DIR) +- cp $(MANPAGE) $(MANDIR) ++ @echo Installing to $(DESTDIR)$(PREFIX)$(DIR), change this by running ./configure --prefix=path ++ -mkdir -vp $(DESTDIR)$(PREFIX)$(DIR) 2> /dev/null ++ cp amap amapcrap $(SCRIPTS) $(DESTDIR)$(PREFIX)$(DIR) ++ cp $(MANPAGE) $(DESTDIR)$(MANDIR) + + clean: + cd pcre-3.9 && make clean diff --git a/amap-path.patch b/amap-path.patch new file mode 100644 index 0000000..484cbdc --- /dev/null +++ b/amap-path.patch @@ -0,0 +1,38 @@ +--- amap-4.7/amap.h.fix 2004-12-11 23:04:05.412386032 +0000 ++++ amap-4.7/amap.h 2004-12-11 23:04:42.033818728 +0000 +@@ -29,11 +29,11 @@ + #warning "PREFIX definition found, installing to this prefix directory location" + #define AMAP_PREFIX PREFIX + #else +- #define AMAP_PREFIX "/usr/local" ++ #define AMAP_PREFIX "/usr" + #endif + #endif + +-#define AMAP_APPDEF_PATH AMAP_PREFIX"/bin" ++#define AMAP_APPDEF_PATH AMAP_PREFIX"/share/amap" + #define AMAP_BUFSIZE 1024 // standard buffer size + #define AMAP_BUFSIZE_BIG 65536 // big standard buffer size + #define AMAP_REGEX_OPTIONS ( PCRE_MULTILINE | PCRE_CASELESS | PCRE_DOTALL ) +--- amap-4.7/Makefile.am.fix 2004-12-11 23:19:55.632930552 +0000 ++++ amap-4.7/Makefile.am 2004-12-11 23:20:09.084885544 +0000 +@@ -5,6 +5,7 @@ + DIR=/bin + SCRIPTS=appdefs.trig appdefs.resp appdefs.rpc + MANPAGE=amap.1 ++DATADIR=/share/amap + all: pcre strip + + pcre: +@@ -30,7 +31,10 @@ + install: all + @echo Installing to $(DESTDIR)$(PREFIX)$(DIR), change this by running ./configure --prefix=path + -mkdir -vp $(DESTDIR)$(PREFIX)$(DIR) 2> /dev/null +- cp amap amapcrap $(SCRIPTS) $(DESTDIR)$(PREFIX)$(DIR) ++ mkdir -p $(DESTDIR)$(PREFIX)$(DATADIR) ++ mkdir -p $(DESTDIR)$(MANDIR) ++ cp amap amapcrap $(DESTDIR)$(PREFIX)$(DIR) ++ cp $(SCRIPTS) $(DESTDIR)$(PREFIX)$(DATADIR) + cp $(MANPAGE) $(DESTDIR)$(MANDIR) + + clean: diff --git a/amap.spec b/amap.spec new file mode 100644 index 0000000..0b726d8 --- /dev/null +++ b/amap.spec @@ -0,0 +1,50 @@ +Summary: Amap is a next-generation scanning tool +Summary(pl): Amap jest skanerem "nastêpnej generacji" +Name: amap +Version: 4.7 +Release: 0.1 +License: GPL +Group: Networking +Source0: http://thc.org/releases/%{name}-%{version}.tar.gz +# Source0-md5: c2ce244321b0b7b5eb28fdc785452b9a +Patch0: %{name}-destdir.patch +Patch1: %{name}-path.patch +URL: http://www.thc.org/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Amap is a next-generation scanning tool, which identifies applications +and services even if they are not listening on the default port by +creating a bogus-communication and analyzing the responses. + +%description -l pl +Amap jest skanerem "nastêpnej generacji", który identyfikuje aplikacje +i serwisy nawet gdy nie nasluchuj± na domy¶lnych portach poprzez +tworzenie pseudo komunikacji i analizie odpowiedzi. + +%prep +%setup -q +%patch0 -p1 +%patch1 -p1 + +%build +./configure +%{__make} strip + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT \ + PREFIX=%{_prefix} \ + MANDIR=%{_mandir}/man1 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES README TODO +%attr(755,root,root) %{_bindir}/* +%{_mandir}/man1/amap.1.gz +%{_datadir}/%{name}