packages: ucidr/ucidr-include.patch (NEW), ucidr/ucidr.spec (NEW) - initial
paszczus
paszczus at pld-linux.org
Fri Jun 12 15:40:09 CEST 2009
Author: paszczus Date: Fri Jun 12 13:40:09 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/ucidr:
ucidr-include.patch (NONE -> 1.1) (NEW), ucidr.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/ucidr/ucidr-include.patch
diff -u /dev/null packages/ucidr/ucidr-include.patch:1.1
--- /dev/null Fri Jun 12 15:40:09 2009
+++ packages/ucidr/ucidr-include.patch Fri Jun 12 15:40:04 2009
@@ -0,0 +1,35 @@
+diff -ur ucidr-1.1/makefile ucidr-1.1.new/makefile
+--- ucidr-1.1/makefile 2009-05-08 21:51:25.000000000 +0200
++++ ucidr-1.1.new/makefile 2009-06-12 15:39:12.529675852 +0200
+@@ -15,6 +15,8 @@
+ #
+
+ CFLAGS= -Wall
++libdir = @libdir@
++includedir = @includedir@
+
+ all: libucidr.a
+
+@@ -25,7 +27,7 @@
+ cc -c ucidr.c -o ucidr.o $(CFLAGS)
+
+ example: example.o
+- cc example.o -o example /usr/lib/openisp/libucidr.a
++ cc example.o -o example $(DESTDIR)$(includedir)/openisp/libucidr.a
+ rm -f example.o
+
+ example.o: example.c ucidr.h
+@@ -35,8 +37,8 @@
+ rm -f *.o *.a example
+
+ install: libucidr.a ucidr.h
+- mkdir -p /usr/lib/openisp
+- mkdir -p /usr/include/openisp
+- install libucidr.a /usr/lib/openisp/libucidr.a
+- install ucidr.h /usr/include/openisp/ucidr.h
++ mkdir -p $(DESTDIR)$(libdir)/openisp
++ mkdir -p $(DESTDIR)$(includedir)/openisp
++ install libucidr.a $(DESTDIR)$(libdir)/openisp/libucidr.a
++ install ucidr.h $(DESTDIR)$(includedir)/openisp/ucidr.h
+ rm libucidr.a
+Tylko w ucidr-1.1.new/: makefile~
================================================================
Index: packages/ucidr/ucidr.spec
diff -u /dev/null packages/ucidr/ucidr.spec:1.1
--- /dev/null Fri Jun 12 15:40:09 2009
+++ packages/ucidr/ucidr.spec Fri Jun 12 15:40:04 2009
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+Summary: A small static library for IPv4 CIDR operations
+Name: ucidr
+Version: 1.1
+Release: 1
+License: LGPL
+Group: Libraries
+Source0: http://unixservice.com/source/libs/%{name}-%{version}.tar.gz
+# Source0-md5: 7f19628e97ec2d212bc66cbd7b3f4fdc
+Patch0: %{name}-include.patch
+URL: http://openisp.net/ucidr
+
+%description
+The ucidr program provides functions for determining if a given IPv4
+is in a given IPv4 CIDR specified block among other basic CIDR
+operations.
+
+Current version provides these functions:
+
+unsigned ExpandCIDR4(const char *cCIDR4, char *cIPs[]); unsigned
+uIpv4InCIDR4(const char *cIPv4, const char *cCIDR4); unsigned
+uInCIDR4Format(const char *cCIDR4,unsigned *uIPv4,unsigned
+- *uCIDR4Mask); unsigned uInIpv4Format(const char *cIPv4,unsigned
+- *uIPv4); unsigned uGetNumIPs(char *cCIDR4); unsigned
+ uGetNumNets(char
+- *cCIDR4);
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make}
+
+%install
+
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ libdir=%{_libdir} \
+ includedir=%{_includedir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README LICENSE
+%{_libdir}/openisp/libucidr.a
+%{_includedir}/openisp/ucidr.h
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/06/12 13:40:04 paszczus
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list