]> git.pld-linux.org Git - packages/amap.git/commitdiff
- initial PLD release
authorluzik <luzik@pld-linux.org>
Sat, 11 Dec 2004 23:34:52 +0000 (23:34 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    amap-destdir.patch -> 1.1
    amap-path.patch -> 1.1
    amap.spec -> 1.1

amap-destdir.patch [new file with mode: 0644]
amap-path.patch [new file with mode: 0644]
amap.spec [new file with mode: 0644]

diff --git a/amap-destdir.patch b/amap-destdir.patch
new file mode 100644 (file)
index 0000000..1737b34
--- /dev/null
@@ -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 (file)
index 0000000..484cbdc
--- /dev/null
@@ -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 (file)
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}
This page took 0.05951 seconds and 4 git commands to generate.