commit 96fa41bd740d41949f8e54097f3e13cb73f5491834d087c043824e2efa73b7c9 Author: OBS User unknown Date: Thu Apr 24 02:47:38 2008 +0000 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/netcat-openbsd?expand=0&rev=1 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..75469eb --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,28 @@ +# +# Cmake Build script for netcat-openbsd +# Author : Cristian Rodríguez +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ + +PROJECT(netcat-openbsd C) +SET(CMAKE_VERBOSE_MAKEFILE ON) +SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -W -Wall") + +#please fix cmake to avoid this %$#$#$ , there is no findGlib2.cmake built-in ! +FIND_PATH(GLIB2_INCLUDE_DIR NAMES glib.h glibconfig.h PATHS /usr/include/glib-2.0) +FIND_PATH(GLIB2_WEIRD_INCLUDE_DIR NAMES glibconfig.h PATHS /usr/lib/glib-2.0/include /usr/lib64/glib-2.0/include) +FIND_LIBRARY(GLIB2_LIBRARY NAMES glib-2.0) + +INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/openbsd-compat) +INCLUDE_DIRECTORIES(${GLIB2_INCLUDE_DIR}) +INCLUDE_DIRECTORIES(${GLIB2_WEIRD_INCLUDE_DIR}) + +SET(NETCAT_SRCS netcat.c atomicio.c socks.c openbsd-compat/base64.c openbsd-compat/readpassphrase.c) +ADD_EXECUTABLE(nc ${NETCAT_SRCS}) +TARGET_LINK_LIBRARIES(nc ${GLIB2_LIBRARY}) +INSTALL(PROGRAMS nc DESTINATION bin) +INSTALL(FILES nc.1 DESTINATION share/man/man1) diff --git a/netcat-openbsd-1.89.tar.bz2 b/netcat-openbsd-1.89.tar.bz2 new file mode 100644 index 0000000..5f3132b --- /dev/null +++ b/netcat-openbsd-1.89.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e167abd95aae72a8abaa6f230dce663e1cdb284c40cbf043ef725fa1cea4ebb +size 12980 diff --git a/netcat-openbsd.changes b/netcat-openbsd.changes new file mode 100644 index 0000000..73c8d84 --- /dev/null +++ b/netcat-openbsd.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Sun Apr 13 05:08:48 CEST 2008 - crrodriguez@suse.de + +- initial version for the OBS + diff --git a/netcat-openbsd.spec b/netcat-openbsd.spec new file mode 100644 index 0000000..afd9bf5 --- /dev/null +++ b/netcat-openbsd.spec @@ -0,0 +1,71 @@ +# +# spec file for package netcat-openbsd (Version 1.89) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + +Url: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/ + +Name: netcat-openbsd +Version: 1.89 +Release: 2 +License: BSD 3-Clause +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: cmake glib2-devel quilt +Conflicts: netcat +Group: Productivity/Networking/Other +Summary: TCP/IP swiss army knife +Source: %{name}-%{version}.tar.bz2 +Source1: CMakeLists.txt +Patch0: netcat-openbsd_1.89-2ubuntu1.diff.bz2 + +%description +A simple Unix utility which reads and writes data across network +connections using TCP or UDP protocol. It is designed to be a reliable +"bac k-end" tool that can be used directly or easily driven by other +programs and scripts. At the same time it is a feature-rich network +debuggin g and exploration tool, since it can create almost any kind of +connection you would need and has several interesting built-in +capabilities. + +This package contains the OpenBSD rewrite of netcat, including support +for IPv6, proxies, and Unix sockets. + + + +Authors: +-------- + Eric Jackson + +%prep +%setup -q +%patch0 -p1 +%{__sed} -i -e 's@Debian patchlevel " DEBIAN_VERSION "@SUSE Linux@g' debian/patches/help-version-exit.patch +QUILT_PATCHES=debian/patches quilt push -a +%{__cp} %{S:1} . + +%build +export CFLAGS="%{optflags}" +cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} . +make + +%install +%makeinstall + +%clean +rm -rf "$RPM_BUILD_ROOT" + +%files +%defattr(-,root,root) +%{_bindir}/nc +%{_mandir}/man1/nc.1.gz + +%changelog +* Sun Apr 13 2008 crrodriguez@suse.de +- initial version for the OBS diff --git a/netcat-openbsd_1.89-2ubuntu1.diff.bz2 b/netcat-openbsd_1.89-2ubuntu1.diff.bz2 new file mode 100644 index 0000000..10ca76a --- /dev/null +++ b/netcat-openbsd_1.89-2ubuntu1.diff.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b02226166dd9e6a32630f2c9f6e90a29631f610d32c622d1d349f8222551bf25 +size 27511 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4