[Tizen-submit] 20301: New package Tizen:IVI:Genivi/net-tools

noreply at tizen.org noreply at tizen.org
Fri Jan 31 03:09:39 GMT 2014


Hi,
Adding new package net-tools in project Tizen:IVI:Genivi. Please review and accept ASAP.

Justification for this new package:

Submitter: Graydon, Tracy <tracy.graydon at intel.com>
Comments: submit/tizen_ivi_genivi/20140131.030431
Git project: platform/upstream/net-tools
Tag: submit/tizen_ivi_genivi/20140131.030431
Commit: 1bfd01a3262139d0c41c5d2c3c5fef5af004aa2f resetting manifest requested domain to floor

Thank You,
Graydon, Tracy

[This message was auto-generated]

---

Request: #20301

  submit:       Tizen:IVI:Genivi:build/net-tools(cleanup) -> Tizen:IVI:Genivi


Message:
Submitter: Graydon, Tracy <tracy.graydon at intel.com>
Comments: submit/tizen_ivi_genivi/20140131.030431
Git project: platform/upstream/net-tools
Tag: submit/tizen_ivi_genivi/20140131.030431
Commit: 1bfd01a3262139d0c41c5d2c3c5fef5af004aa2f resetting manifest requested domain to floor

State:   new        2014-01-31T03:11:35 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:
----
  0001-Bump-version-to-2.0.patch
  0002-add-changelog.patch
  net-tools-2.0_20121208git.tar.xz
  net-tools-config.h
  net-tools-config.make
  net-tools.changes
  net-tools.manifest
  net-tools.spec

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

++++++ new spec file:
--- net-tools.spec
+++ net-tools.spec
@@ -0,0 +1,75 @@
+Summary: Basic networking tools
+Name: net-tools
+VCS:  platform/upstream/net-tools#1bfd01a3262139d0c41c5d2c3c5fef5af004aa2f
+Version: 2.0_20121208git
+Release: 0
+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
+Source1001: 	net-tools.manifest
+# Patches auto-generated by git-buildpackage:
+Patch0:     0001-Bump-version-to-2.0.patch
+Patch1:     0002-add-changelog.patch
+
+%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 
+# 0001-Bump-version-to-2.0.patch
+%patch0 -p1
+# 0002-add-changelog.patch
+%patch1 -p1
+cp %{SOURCE1001} .
+
+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

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


More information about the Tizen-submit mailing list