OBS User unknown 2008-04-24 02:47:38 +00:00 committed by Git OBS Bridge
commit 96fa41bd74
8 changed files with 134 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

28
CMakeLists.txt Normal file
View File

@ -0,0 +1,28 @@
#
# Cmake Build script for netcat-openbsd
# Author : Cristian Rodríguez <crrodriguez@suse.de>
#
# 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)

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7e167abd95aae72a8abaa6f230dce663e1cdb284c40cbf043ef725fa1cea4ebb
size 12980

5
netcat-openbsd.changes Normal file
View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Sun Apr 13 05:08:48 CEST 2008 - crrodriguez@suse.de
- initial version for the OBS

71
netcat-openbsd.spec Normal file
View File

@ -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 <ericj@monkey.org>
%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

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b02226166dd9e6a32630f2c9f6e90a29631f610d32c622d1d349f8222551bf25
size 27511

0
ready Normal file
View File