From 9d1c36fed4f0e31ea7dbd34de2a5fbf267cb07ef22e3f865110f82fec8f4f4d8 Mon Sep 17 00:00:00 2001 From: Marcus Rueckert Date: Sat, 20 Feb 2010 17:30:23 +0000 Subject: [PATCH] Accepting request 31339 from security:openvas:UNSTABLE Copy from security:openvas:UNSTABLE/libmicrohttpd via accept of submit request 31339 revision 7. Request was accepted with message: reviewed OBS-URL: https://build.opensuse.org/request/show/31339 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libmicrohttpd?expand=0&rev=1 --- .gitattributes | 23 +++++ debian.changelog | 11 +++ debian.compat | 1 + debian.control | 41 +++++++++ debian.libmicrohttpd-dev.install | 5 ++ debian.libmicrohttpd5.install | 1 + debian.rules | 83 ++++++++++++++++++ libmicrohttpd-0.4.5.tar.gz | 3 + libmicrohttpd.changes | 10 +++ libmicrohttpd.dsc | 16 ++++ libmicrohttpd.spec | 145 +++++++++++++++++++++++++++++++ 11 files changed, 339 insertions(+) create mode 100644 .gitattributes create mode 100644 debian.changelog create mode 100644 debian.compat create mode 100644 debian.control create mode 100644 debian.libmicrohttpd-dev.install create mode 100644 debian.libmicrohttpd5.install create mode 100644 debian.rules create mode 100644 libmicrohttpd-0.4.5.tar.gz create mode 100644 libmicrohttpd.changes create mode 100644 libmicrohttpd.dsc create mode 100644 libmicrohttpd.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/debian.changelog b/debian.changelog new file mode 100644 index 0000000..a5f407b --- /dev/null +++ b/debian.changelog @@ -0,0 +1,11 @@ +libmicrohttpd (0.4.5-1) unstable; urgency=low + + * Updated to 0.4.5. + + -- Stephan Kleine Sat, 02 Feb 2010 13:10:52 +0100 + +libmicrohttpd (0.4.4-1) unstable; urgency=low + + * Initial package. + + -- Stephan Kleine Sat, 23 Jan 2010 14:04:38 +0100 diff --git a/debian.compat b/debian.compat new file mode 100644 index 0000000..2445c5e --- /dev/null +++ b/debian.compat @@ -0,0 +1 @@ +5 diff --git a/debian.control b/debian.control new file mode 100644 index 0000000..f410273 --- /dev/null +++ b/debian.control @@ -0,0 +1,41 @@ +Source: libmicrohttpd +Section: libs +Priority: optional +Maintainer: Debian GNUnet Maintainers +Uploaders: Daniel Baumann +Build-Depends: debhelper (>= 5), autotools-dev, libcurl4-openssl-dev, libgcrypt11-dev (>= 1.2.4) +Standards-Version: 3.8.3 +Homepage: http://www.gnu.org/software/libmicrohttpd/ +Vcs-Browser: http://git.debian-maintainers.org/?p=gnunet/libmicrohttpd.git +Vcs-Git: git://git.debian-maintainers.org/git/gnunet/libmicrohttpd.git + +Package: libmicrohttpd5 +Section: libs +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Description: library embedding HTTP server functionality + libmicrohttpd is a small C library for embedding HTTP server functionality into + applications. + . + It will be used in future GNUnet versions as part of the HTTP transport. + +Package: libmicrohttpd-dbg +Section: debug +Priority: extra +Architecture: any +Depends: ${misc:Depends}, libmicrohttpd5 (= ${binary:Version}), libmicrohttpd-dev (= ${binary:Version}) +Description: library embedding HTTP server functionality (debug) + libmicrohttpd is a small C library for embedding HTTP server functionality into + applications. + . + This package contains the debugging symbols. + +Package: libmicrohttpd-dev +Section: libdevel +Architecture: any +Depends: ${misc:Depends}, libmicrohttpd5 (= ${binary:Version}), +Description: library embedding HTTP server functionality (development) + libmicrohttpd is a small C library for embedding HTTP server functionality into + applications. + . + This package contains the development files. diff --git a/debian.libmicrohttpd-dev.install b/debian.libmicrohttpd-dev.install new file mode 100644 index 0000000..1177906 --- /dev/null +++ b/debian.libmicrohttpd-dev.install @@ -0,0 +1,5 @@ +/usr/include/* +/usr/lib/*.so +/usr/lib/pkgconfig +/usr/share/info +/usr/share/man diff --git a/debian.libmicrohttpd5.install b/debian.libmicrohttpd5.install new file mode 100644 index 0000000..2f80f13 --- /dev/null +++ b/debian.libmicrohttpd5.install @@ -0,0 +1 @@ +usr/lib/*.so.* diff --git a/debian.rules b/debian.rules new file mode 100644 index 0000000..4d5af0f --- /dev/null +++ b/debian.rules @@ -0,0 +1,83 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +config.status: configure + dh_testdir + + # Configuring package + CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --disable-static --enable-curl --enable-messages --enable-https --enable-client-side + +build: build-stamp +build-stamp: config.status + dh_testdir + + # Building package + $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Cleaning package + [ ! -f Makefile ] || $(MAKE) distclean +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Installing package + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs ChangeLog + dh_installdocs + # Removing useless files + rm -f debian/tmp/usr/lib/*.a + rm -f debian/tmp/usr/lib/*.la + rm -f debian/tmp/usr/share/info/dir* + dh_install --fail-missing --sourcedir=debian/tmp + dh_link + dh_strip --dbg-package=libmicrohttpd-dbg + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/libmicrohttpd-0.4.5.tar.gz b/libmicrohttpd-0.4.5.tar.gz new file mode 100644 index 0000000..42bb11a --- /dev/null +++ b/libmicrohttpd-0.4.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:138e89fbb114cf8bb564ed884d1da99e2c0634f4c11887f42dfdddabf7d52eab +size 878634 diff --git a/libmicrohttpd.changes b/libmicrohttpd.changes new file mode 100644 index 0000000..d7b3407 --- /dev/null +++ b/libmicrohttpd.changes @@ -0,0 +1,10 @@ +------------------------------------------------------------------- +Tue Feb 2 13:10:52 UTC 2010 - bitshuffler #suse@irc.freenode.org + +- Updated to 0.4.5. + +------------------------------------------------------------------- +Sun Jan 17 19:52:07 UTC 2010 - bitshuffler #suse@irc.freenode.org + +- Initial RPM. + diff --git a/libmicrohttpd.dsc b/libmicrohttpd.dsc new file mode 100644 index 0000000..8263b69 --- /dev/null +++ b/libmicrohttpd.dsc @@ -0,0 +1,16 @@ +Format: 1.0 +Source: libmicrohttpd +Binary: libmicrohttpd5, libmicrohttpd-dbg, libmicrohttpd-dev +Architecture: any +Version: 0.4.5-1 +Maintainer: Debian GNUnet Maintainers +Uploaders: Daniel Baumann +Homepage: http://www.gnu.org/software/libmicrohttpd/ +Standards-Version: 3.8.3 +Vcs-Browser: http://git.debian-maintainers.org/?p=gnunet/libmicrohttpd.git +Vcs-Git: git://git.debian-maintainers.org/git/gnunet/libmicrohttpd.git +Build-Depends: debhelper (>= 5), autotools-dev, libcurl4-openssl-dev, libgcrypt11-dev (>= 1.2.4) + +Files: + bcd61ebb10286379f55c7db9c79e0465 843590 libmicrohttpd-0.4.5.tar.gz + ee55b467a355f4669023ca61fa04aaf4 3595 libmicrohttpd-0.4.5.diff.gz diff --git a/libmicrohttpd.spec b/libmicrohttpd.spec new file mode 100644 index 0000000..0b65a38 --- /dev/null +++ b/libmicrohttpd.spec @@ -0,0 +1,145 @@ +# norootforbuild + +%define soname 5 + +Name: libmicrohttpd +Version: 0.4.5 +Release: 1.0 +License: GNU LGPL v2.1 +Group: Productivity/Networking/Web/Servers +Url: http://gnunet.org/libmicrohttpd/ +Source: http://ftpmirror.gnu.org/libmicrohttpd/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: libcurl-devel +BuildRequires: libgcrypt-devel >= 1.2.4 +BuildRequires: libtasn1-devel +Summary: Small Embeddable HTTP Server Library + +%description +GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application. GNU libmicrohttpd is free software and part of the GNU project. Key features that distinguish libmicrohttpd from other projects are: + + * C library: fast and small + * API is simple, expressive and fully reentrant + * Implementation is http 1.1 compliant + * HTTP server can listen on multiple ports + * Support for IPv6 + * Support for incremental processing of POST data + * Creates binary of only 30k (without TLS/SSL support) + * Three different threading models + * Supported platforms include GNU/Linux, FreeBSD, OpenBSD, NetBSD, OS X, W32, Symbian and z/OS + * Optional support for SSL3 and TLS (requires libgcrypt) + +libmicrohttpd was started because the author needed an easy way to add a concurrent HTTP server to other projects. Existing alternatives were either non-free, not reentrant, standalone, of terrible code quality or a combination thereof. Do not use libmicrohttpd if you are looking for a standalone http server, there are many other projects out there that provide that kind of functionality already. However, if you want to be able to serve simple WWW pages from within your C or C++ application, check it out. + +%package -n %{name}%{soname} +Group: System/Libraries +PreReq: glibc +Summary: Small Embeddable HTTP Server Library + +%description -n %{name}%{soname} +GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application. GNU libmicrohttpd is free software and part of the GNU project. Key features that distinguish libmicrohttpd from other projects are: + + * C library: fast and small + * API is simple, expressive and fully reentrant + * Implementation is http 1.1 compliant + * HTTP server can listen on multiple ports + * Support for IPv6 + * Support for incremental processing of POST data + * Creates binary of only 30k (without TLS/SSL support) + * Three different threading models + * Supported platforms include GNU/Linux, FreeBSD, OpenBSD, NetBSD, OS X, W32, Symbian and z/OS + * Optional support for SSL3 and TLS (requires libgcrypt) + +libmicrohttpd was started because the author needed an easy way to add a concurrent HTTP server to other projects. Existing alternatives were either non-free, not reentrant, standalone, of terrible code quality or a combination thereof. Do not use libmicrohttpd if you are looking for a standalone http server, there are many other projects out there that provide that kind of functionality already. However, if you want to be able to serve simple WWW pages from within your C or C++ application, check it out. + +%package devel +Group: Development/Libraries/C and C++ +Requires: %{name}%{soname} = %{version} +PreReq: info +Summary: Small Embeddable HTTP Server Library + +%description devel +GNU libmicrohttpd is a small C library that is supposed to make it easy to run an HTTP server as part of another application. GNU libmicrohttpd is free software and part of the GNU project. Key features that distinguish libmicrohttpd from other projects are: + + * C library: fast and small + * API is simple, expressive and fully reentrant + * Implementation is http 1.1 compliant + * HTTP server can listen on multiple ports + * Support for IPv6 + * Support for incremental processing of POST data + * Creates binary of only 30k (without TLS/SSL support) + * Three different threading models + * Supported platforms include GNU/Linux, FreeBSD, OpenBSD, NetBSD, OS X, W32, Symbian and z/OS + * Optional support for SSL3 and TLS (requires libgcrypt) + +libmicrohttpd was started because the author needed an easy way to add a concurrent HTTP server to other projects. Existing alternatives were either non-free, not reentrant, standalone, of terrible code quality or a combination thereof. Do not use libmicrohttpd if you are looking for a standalone http server, there are many other projects out there that provide that kind of functionality already. However, if you want to be able to serve simple WWW pages from within your C or C++ application, check it out. + + +%prep +%setup -q + +%build +%configure --disable-static \ + --enable-curl \ + --enable-messages \ + --enable-https \ + --enable-client-side +%__make %{?_smp_mflags} + +%install +%makeinstall +find %{buildroot} -name *.la -exec %__rm {} \; + +# Some tests fail due to some issue in gnutls +#%check +#%__make %{?_smp_mflags} check + +%post -n %{name}%{soname} -p /sbin/ldconfig + +%post devel +%if 0%{?fedora_version} +/sbin/install-info --info-dir=%{_infodir} --info-file=%{_infodir}/microhttpd.info.gz +%endif + +%if 0%{?mandriva_version} +%_install_info libmicrohttpd.info +%endif + +%if 0%{?suse_version} +%install_info --info-dir=%{_infodir} %{_infodir}/libmicrohttpd.info.gz +%endif + +%postun -n %{name}%{soname} -p /sbin/ldconfig + +%postun devel +%if 0%{?fedora_version} +/sbin/install-info --delete --info-dir=%{_infodir} --info-file=%{_infodir}/microhttpd.info.gz +%endif + +%if 0%{?mandriva_version} +%_remove_install_info libmicrohttpd.info +%endif + +%if 0%{?suse_version} +%install_info_delete --info-dir=%{_infodir} %{_infodir}/libmicrohttpd.info.gz +%endif + +%clean +test "%{buildroot}" != "/" && %__rm -rf %{buildroot} + +%files -n %{name}%{soname} +%defattr(-,root,root) +%{_libdir}/libmicrohttpd.so.%{soname}* + +%files devel +%defattr(-,root,root) +%{_includedir}/microhttpd.h +%{_libdir}/libmicrohttpd.so +%{_libdir}/pkgconfig/libmicrohttpd.pc +%{_infodir}/microhttpd.info* +%{_mandir}/man3/libmicrohttpd.3* + +# Do NOT delete this cause I need it for Fedora & Mandriva too! +%if 0%{?fedora_version} +%exclude %{_infodir}/dir +%endif