summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorWook Song <wook16.song@samsung.com>2019-07-10 13:50:14 +0900
committerWook Song <wook16.song@samsung.com>2019-07-10 15:20:47 +0900
commitfc9b43d79f2987264081030a76a1efb2c5ced000 (patch)
tree2e77d03139150bdaccb6e11e84a71748b7cda05d /packaging
parent8420832d33d08ed5d4ecb244b48434ef31a83e5b (diff)
downloadtoybox-fc9b43d79f2987264081030a76a1efb2c5ced000.tar.gz
toybox-fc9b43d79f2987264081030a76a1efb2c5ced000.tar.bz2
toybox-fc9b43d79f2987264081030a76a1efb2c5ced000.zip
packaging: Do not create symboic links in /bin and /sbin
Since the 'filesystem' package creates /bin and /sbin as symbolic links to /usr/bin and /usr/sbin, respectively, in Tizen, it is unnecessary that toybox creates symbolic links in /bin and /sbin by itself. Change-Id: Ic9b799a3f1de48b5ddaa1815ab82d9adfea70871 Signed-off-by: Wook Song <wook16.song@samsung.com>
Diffstat (limited to 'packaging')
-rw-r--r--packaging/bin.links0
-rw-r--r--packaging/sbin.links0
-rw-r--r--packaging/toybox.spec32
3 files changed, 14 insertions, 18 deletions
diff --git a/packaging/bin.links b/packaging/bin.links
deleted file mode 100644
index e69de29..0000000
--- a/packaging/bin.links
+++ /dev/null
diff --git a/packaging/sbin.links b/packaging/sbin.links
deleted file mode 100644
index e69de29..0000000
--- a/packaging/sbin.links
+++ /dev/null
diff --git a/packaging/toybox.spec b/packaging/toybox.spec
index d52e4d3..67ebf39 100644
--- a/packaging/toybox.spec
+++ b/packaging/toybox.spec
@@ -7,8 +7,6 @@ License: BSD-2.0
URL: http://www.landley.net/toybox/
Source: %{name}-%{version}.tar.bz2
Source1: config
-Source2: bin.links
-Source3: sbin.links
Source4: usrbin.links
Source5: usrsbin.links
Source11: config-full
@@ -98,38 +96,36 @@ cp toybox toybox-dynamic-full
%install
rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/bin
-mkdir -p $RPM_BUILD_ROOT/sbin
-install -m 755 toybox-dynamic $RPM_BUILD_ROOT/bin/toybox
-install -m 755 toybox-dynamic-full $RPM_BUILD_ROOT/bin/toybox-full
+mkdir -p $RPM_BUILD_ROOT/%{_bindir}
+mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
+install -m 755 toybox-dynamic $RPM_BUILD_ROOT/%{_bindir}/toybox
+install -m 755 toybox-dynamic-full $RPM_BUILD_ROOT/%{_bindir}/toybox-full
# debian/toybox.links
pushd %{buildroot}
-mkdir -p usr/bin usr/sbin sbin
-cd bin
-for f in `cat %SOURCE2` ; do ln -s toybox $f ; done
-cd ../sbin
-for f in `cat %SOURCE3` ; do ln -s ../bin/toybox $f ; done
-cd ../usr/bin
-for f in `cat %SOURCE4` ; do ln -s ../../bin/toybox $f ; done
-cd ../../usr/sbin
-for f in `cat %SOURCE5` ; do ln -s ../../bin/toybox $f ; done
+mkdir -p usr/bin usr/sbin
+pushd usr/bin
+for f in `cat %SOURCE4` ; do ln -s toybox $f ; done
+popd
+pushd usr/sbin
+for f in `cat %SOURCE5` ; do ln -s ../bin/toybox $f ; done
+popd
popd
%post full
-/bin/toybox-full ln -s /bin/toybox-full /bin/toybox
+%{_bindir}/toybox-full ln -s %{_bindir}/toybox-full %{_bindir}/toybox
%files
%manifest toybox.manifest
%license LICENSE.BSD
%defattr(-,root,root,-)
-/bin/toybox
+%{_bindir}/toybox
%files full
%manifest toybox.manifest
%license LICENSE.BSD
%defattr(-,root,root,-)
-/bin/toybox-full
+%{_bindir}/toybox-full
%files symlinks-full
%manifest toybox.manifest