Bump to dash 0.5.11.5 77/265277/2 accepted/tizen_7.0_base accepted/tizen_7.0_base_hotfix accepted/tizen_7.0_base_tool accepted/tizen_7.0_base_tool_hotfix accepted/tizen_8.0_base accepted/tizen_base accepted/tizen_base_tool sandbox/dh0128.kwak/dash-0.5.11.5-20211013 tizen_7.0_base tizen_7.0_base_hotfix tizen_8.0_base tizen_base accepted/tizen/7.0/base/20230714.002849 accepted/tizen/7.0/base/hotfix/20230714.003704 accepted/tizen/7.0/base/tool/20221028.113029 accepted/tizen/7.0/base/tool/hotfix/20221115.084822 accepted/tizen/8.0/base/20231005.044635 accepted/tizen/base/20230714.003257 accepted/tizen/base/tool/20211115.013144 submit/tizen_7.0_base/20221028.200901 submit/tizen_7.0_base_hotfix/20221115.161501 submit/tizen_base/20211110.060024 tizen_7.0_m2_release tizen_8.0_m2_release
authorDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 13 Oct 2021 22:55:59 +0000 (07:55 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Wed, 13 Oct 2021 22:56:18 +0000 (07:56 +0900)
Change-Id: I94b9a6d64469443e8ac4d8f89ad3b10a158d255c
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/dash.manifest [new file with mode: 0644]
packaging/dash.spec [new file with mode: 0644]

diff --git a/packaging/dash.manifest b/packaging/dash.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/dash.spec b/packaging/dash.spec
new file mode 100644 (file)
index 0000000..e2e7ad4
--- /dev/null
@@ -0,0 +1,46 @@
+Name:           dash
+Version:        0.5.11.5
+Release:        0
+Summary:        Small and fast POSIX-compliant shell
+Group:          Base/Utilities
+License:        BSD-3-Clause and GPL-2.0+
+URL:            http://gondor.apana.org.au/~herbert/dash/
+Source0:        http://gondor.apana.org.au/~herbert/dash/files/dash-%{version}.tar.gz
+Source1001:    dash.manifest
+
+%description
+DASH is a POSIX-compliant implementation of /bin/sh that aims to be as small as
+possible. It does this without sacrificing speed where possible. In fact, it is
+significantly faster than bash (the GNU Bourne-Again SHell) for most tasks.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS+=" -fPIC"
+export LDFLAGS+=" -pie"
+%configure
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+mkdir -p %{buildroot}/bin
+mv %{buildroot}%{_bindir}/dash %{buildroot}/bin/
+rm -rf %{buildroot}%{_bindir}/
+
+%post
+grep -q '^/bin/dash$' /etc/shells || echo '/bin/dash' >> /etc/shells
+
+%postun
+if [ $1 -eq 0 ]; then
+    sed -i '/^\/bin\/dash$/d' /etc/shells
+fi
+
+%docs_package
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+/bin/dash
+