Defragment per-profile dependencies 54/83354/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable accepted/tizen_3.0_common accepted/tizen_3.0_ivi accepted/tizen_3.0_mobile accepted/tizen_3.0_tv accepted/tizen_3.0_wearable accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable tizen_3.0 tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170105.025510 accepted/tizen/3.0.m2/tv/20170105.025657 accepted/tizen/3.0.m2/wearable/20170105.025743 accepted/tizen/3.0/common/20161114.111920 accepted/tizen/3.0/ivi/20161011.065215 accepted/tizen/3.0/mobile/20161015.034428 accepted/tizen/3.0/tv/20161016.005944 accepted/tizen/3.0/wearable/20161015.084349 accepted/tizen/common/20160831.161415 accepted/tizen/ivi/20160831.124353 accepted/tizen/mobile/20160831.124304 accepted/tizen/tv/20160831.124315 accepted/tizen/unified/20170309.040646 accepted/tizen/wearable/20160831.124336 submit/tizen/20160831.004932 submit/tizen_3.0.m2/20170104.093755 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000007 submit/tizen_3.0_mobile/20161015.000007 submit/tizen_3.0_tv/20161015.000006 submit/tizen_3.0_wearable/20161015.000006 submit/tizen_unified/20170308.100417 tizen_4.0.m1_release
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 10 Aug 2016 08:14:08 +0000 (17:14 +0900)
committerYu Jiung <jiung.yu@samsung.com>
Wed, 17 Aug 2016 07:04:36 +0000 (16:04 +0900)
General packages especially at lower layers should avoid
being direclty dependent on profile information, which
enforces build system to build things redundantly and
makes much difficult to configure a system.

Change-Id: I5ee2715c537c4ad61c903a436bd8f8552111bd49
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
packaging/bin_tv.links [deleted file]
packaging/sbin_tv.links [deleted file]
packaging/toybox.spec
packaging/usrbin.links

diff --git a/packaging/bin_tv.links b/packaging/bin_tv.links
deleted file mode 100644 (file)
index 5c3aa65..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-ping
-ping6
diff --git a/packaging/sbin_tv.links b/packaging/sbin_tv.links
deleted file mode 100644 (file)
index 5c3aa65..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-ping
-ping6
index c94e836..78a2f24 100644 (file)
@@ -7,13 +7,8 @@ License: BSD-2.0
 URL: http://www.landley.net/toybox/
 Source: %{name}-%{version}.tar.bz2
 Source1: config
-%if "%{?profile}"=="tv"
-Source2: bin_tv.links
-Source3: sbin_tv.links
-%else
 Source2: bin.links
 Source3: sbin.links
-%endif
 Source4: usrbin.links
 Source5: usrsbin.links
 Source1001: toybox.manifest
@@ -43,6 +38,30 @@ Requires: %{name} = %{version}-%{release}
 %description symlinks-dhcpd
 ToyBox symlinks for utilities corresponding to 'dhcpd' package.
 
+%package symlinks-ping
+Group: Base/Utilities
+Summary: ToyBox symlinks to provide 'ping'
+Requires: %{name} = %{version}-%{release}
+
+%description symlinks-ping
+ToyBox symlinks for utilities corresponding to 'ping' package.
+
+%package symlinks-ping6
+Group: Base/Utilities
+Summary: ToyBox symlinks to provide 'ping6'
+Requires: %{name} = %{version}-%{release}
+
+%description symlinks-ping6
+ToyBox symlinks for utilities corresponding to 'ping6' package.
+
+%package symlinks-nslookup
+Group: Base/Utilities
+Summary: ToyBox symlinks to provide 'nslookup'
+Requires: %{name} = %{version}-%{release}
+
+%description symlinks-nslookup
+ToyBox symlinks for utilities corresponding to 'nslookup' package.
+
 %prep
 %setup -q
 
@@ -77,13 +96,6 @@ popd
 %license LICENSE.BSD
 %defattr(-,root,root,-)
 /bin/toybox
-/usr/bin/nslookup
-%if "%{?profile}"=="tv"
-/sbin/ping
-/bin/ping
-/sbin/ping6
-/bin/ping6
-%endif
 
 %files symlinks-dhcp
 %manifest toybox.manifest
@@ -97,3 +109,21 @@ popd
 %defattr(-,root,root,-)
 %{_bindir}/dumpleases
 %{_sbindir}/dhcpd
+
+%files symlinks-ping
+%manifest toybox.manifest
+%license LICENSE.BSD
+%defattr(-,root,root,-)
+%{_bindir}/ping
+
+%files symlinks-ping6
+%manifest toybox.manifest
+%license LICENSE.BSD
+%defattr(-,root,root,-)
+%{_bindir}/ping6
+
+%files symlinks-nslookup
+%manifest toybox.manifest
+%license LICENSE.BSD
+%defattr(-,root,root,-)
+%{_bindir}/nslookup
index 2ed0e8d..4df9fd8 100644 (file)
@@ -1,3 +1,5 @@
 dumpleases
 dhcp
 nslookup
+ping
+ping6