[Tizen-submit] 3823: New package devel:upstream/net-tools

noreply at tizen.org noreply at tizen.org
Fri May 3 23:14:29 GMT 2013


Hi,
Adding new package net-tools in project devel:upstream. Please review and accept ASAP.

Justification for this new package:

Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130503.230606
Git project: platform/upstream/net-tools
Tag: submit/tizen/20130503.230606
Commit: 2e827e3 cleanup spec

Thank You,
Prajwal Mohan

[This message was auto-generated]

---

Request: #3823

  submit:       devel:upstream:build/net-tools(cleanup) -> devel:upstream


Message:
Submitter: Prajwal Mohan <prajwal.karur.mohan at intel.com>
Comments: submit/tizen/20130503.230606
Git project: platform/upstream/net-tools
Tag: submit/tizen/20130503.230606
Commit: 2e827e3 cleanup spec

State:   new        2013-05-03T15:33:57 tizenrobot
Comment: <no comment>
changes files:
--------------

++++++ new changes file:
--- net-tools.changes
+++ net-tools.changes
@@ -0,0 +1,6 @@
+* Fri Dec 14 2012 Anas Nashif <anas.nashif at intel.com> submit/trunk/20121214.155951 at 1071000
+- move netstat to /usr/bin
+
+* Fri Dec 14 2012 Anas Nashif <anas.nashif at intel.com> 9a022d8
+- initial release
+

new:
----
  net-tools-2.0_20121208git.tar.xz
  net-tools-config.h
  net-tools-config.make
  net-tools.changes
  net-tools.spec

spec files:
-----------

++++++ new spec file:
--- net-tools.spec
+++ net-tools.spec
@@ -0,0 +1,65 @@
+Summary: Basic networking tools
+Name: net-tools
+Version: 2.0_20121208git
+Release: 0
+VCS:        platform/upstream/net-tools#submit/tizen/20130503.230606-0-g2e827e3
+License: GPLv2+
+Group: System/Base
+URL: http://sourceforge.net/projects/net-tools/
+
+# git archive --format=tar --remote=git://net-tools.git.sourceforge.net/gitroot/net-tools/net-tools master | xz > net-tools-%%{version}.%%{checkout}.tar.xz
+Source0: net-tools-%{version}.tar.xz
+Source1: net-tools-config.h
+Source2: net-tools-config.make
+
+%description
+The net-tools package contains basic networking tools,
+including ifconfig, netstat, route, and others.
+Most of them are obsolete. For replacement check iproute package.
+
+%prep
+%setup -q 
+
+cp %SOURCE1 ./config.h
+cp %SOURCE2 ./config.make
+
+%build
+export CFLAGS="$RPM_OPT_FLAGS $CFLAGS -fpie"
+export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
+
+make
+
+%install
+make BASEDIR=%{buildroot} mandir=%{_mandir} install
+
+mkdir -p %{buildroot}/usr/sbin
+mkdir -p %{buildroot}/usr/bin
+mv %{buildroot}/bin/ifconfig %{buildroot}/usr/sbin
+mv %{buildroot}/bin/route %{buildroot}/usr/sbin
+mv %{buildroot}/bin/netstat %{buildroot}/usr/bin
+
+
+rm %{buildroot}/sbin/rarp
+
+# remove hostname (has its own package)
+rm %{buildroot}/bin/dnsdomainname
+rm %{buildroot}/bin/domainname
+rm %{buildroot}/bin/hostname
+rm %{buildroot}/bin/nisdomainname
+rm %{buildroot}/bin/ypdomainname
+
+%docs_package
+
+
+%files 
+%license COPYING
+/usr/bin/netstat
+/usr/sbin/ifconfig

Please refer to OBS webUI for more details about this SR.


More information about the Tizen-submit mailing list