[521] | 1 | Summary: The Debian Almquist Shell (formerly NetBSD's ash) |
---|
| 2 | Summary(ja): Bourne シェル (sh) の機能縮小版 (Debian 版 ash) |
---|
| 3 | Name: dash |
---|
[3663] | 4 | Version: 0.5.6 |
---|
[521] | 5 | Release: 1%{?_dist_release} |
---|
[3663] | 6 | |
---|
[521] | 7 | License: BSD |
---|
| 8 | Group: System Environment/Shells |
---|
[3663] | 9 | URL: http://gondor.apana.org.au/~herbert/dash/ |
---|
| 10 | |
---|
| 11 | Source: http://gondor.apana.org.au/~herbert/dash/files/%{name}-%{version}.tar.gz |
---|
| 12 | |
---|
| 13 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
[521] | 14 | BuildRequires: bison |
---|
[3663] | 15 | BuildRequires: dietlibc >= 0.32 |
---|
[521] | 16 | Requires(pre): fileutils grep |
---|
| 17 | Obsoletes: ash <= 0.4 |
---|
| 18 | Provides: ash = %{version}-%{release} |
---|
| 19 | Conflicts: mkinitrd <= 1.7 |
---|
| 20 | |
---|
[3663] | 21 | Vendor: Project Vine |
---|
| 22 | Distribution: Vine Linux |
---|
| 23 | Packager: shaolin,daisuke |
---|
[521] | 24 | |
---|
| 25 | %description |
---|
| 26 | "dash" is a POSIX compliant shell that is much smaller than "bash". |
---|
| 27 | Dash supports many features that a real sh shell would support, however |
---|
| 28 | it is much smaller in size. This becomes an advantage in situations |
---|
| 29 | where there is a lack of memery (initial ram-disks, etc). dash does |
---|
| 30 | lack a few features, like command line history. |
---|
| 31 | |
---|
| 32 | dash is the continuation of the original NetBSD ash fork. dash is much |
---|
| 33 | more up-to-date, and properly maintained. |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | %description -l ja |
---|
| 37 | "dash" は POSIX 互換シェルで、"bash" よりサイズが大変小さいものです。 |
---|
| 38 | dash は、sh シェルコマンドをすべてサポートしており、かつ sh より比較的 |
---|
| 39 | サイズが小さく収まっています。そのため、起動直後の RAM ディスクで使う |
---|
| 40 | など、使用可能メモリ量が制限されるような状況で有効に使うことができます。 |
---|
| 41 | ただし dash にはコマンドライン履歴などのいくつかの機能が備わっていません。 |
---|
| 42 | |
---|
| 43 | dash はオリジナルの NetBSD ash から分岐したもので、 |
---|
| 44 | ash とは異なり現在でも適切にメンテナンスされ続けています。 |
---|
| 45 | |
---|
| 46 | |
---|
| 47 | %package static |
---|
| 48 | Summary: The Debian Almquist Shell (statically compiled) |
---|
| 49 | Summary(ja): Bourne シェル (sh) の機能縮小版 (静的リンク版) |
---|
| 50 | Group: System Environment/Shells |
---|
| 51 | Obsoletes: ash <= 0.4 |
---|
| 52 | Provides: ash-static = %{version}-%{release} |
---|
| 53 | |
---|
| 54 | |
---|
| 55 | %description static |
---|
| 56 | "dash" is a POSIX compliant shell that is much smaller than "bash". |
---|
| 57 | Dash supports many features that a real sh shell would support, however |
---|
| 58 | it is much smaller in size. This becomes an advantage in situations |
---|
| 59 | where there is a lack of memery (initial ram-disks, etc). dash does |
---|
| 60 | lack a few features, like command line history. |
---|
| 61 | |
---|
| 62 | dash is the continuation of the original NetBSD ash fork. dash is much |
---|
| 63 | more up-to-date, and properly maintained. |
---|
| 64 | |
---|
| 65 | This version is statically compiled. |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %description static -l ja |
---|
| 69 | "dash" は POSIX 互換シェルで、"bash" よりサイズが大変小さいものです。 |
---|
| 70 | dash は、sh シェルコマンドをすべてサポートしており、かつ sh より比較的 |
---|
| 71 | サイズが小さく収まっています。そのため、起動直後の RAM ディスクで使う |
---|
| 72 | など、使用可能メモリ量が制限されるような状況で有効に使うことができます。 |
---|
| 73 | ただし dash にはコマンドライン履歴などのいくつかの機能が備わっていません。 |
---|
| 74 | |
---|
| 75 | dash はオリジナルの NetBSD ash から分岐したもので、 |
---|
| 76 | ash とは異なり現在でも適切にメンテナンスされ続けています。 |
---|
| 77 | |
---|
| 78 | このパッケージは静的リンクされたバージョンです。 |
---|
| 79 | |
---|
| 80 | |
---|
| 81 | %prep |
---|
| 82 | %setup -q |
---|
| 83 | |
---|
| 84 | |
---|
| 85 | %build |
---|
| 86 | %configure |
---|
| 87 | |
---|
| 88 | # building dynamically linked dash |
---|
| 89 | make |
---|
| 90 | mv src/dash src/dash.dynamic |
---|
| 91 | |
---|
| 92 | # building statically linked dietlibc dash |
---|
| 93 | make clean |
---|
| 94 | %configure CC="diet gcc" |
---|
| 95 | make CC="diet gcc" |
---|
| 96 | mv src/dash src/dash.static |
---|
| 97 | |
---|
| 98 | |
---|
| 99 | %install |
---|
| 100 | rm -rf %{buildroot} |
---|
| 101 | mkdir -p %{buildroot}/bin |
---|
| 102 | mkdir -p %{buildroot}%{_mandir}/man1 |
---|
| 103 | |
---|
| 104 | install -m 755 src/dash.dynamic %{buildroot}/bin/dash |
---|
| 105 | install -m 644 src/dash.1 %{buildroot}%{_mandir}/man1/dash.1 |
---|
| 106 | ln -sf dash.1 %{buildroot}%{_mandir}/man1/bsh.1 |
---|
| 107 | ln -sf dash %{buildroot}/bin/bsh |
---|
| 108 | ln -sf dash.1 %{buildroot}%{_mandir}/man1/ash.1 |
---|
| 109 | ln -sf dash %{buildroot}/bin/ash |
---|
| 110 | |
---|
| 111 | install -m 755 src/dash.static %{buildroot}/bin/dash.static |
---|
| 112 | ln -sf dash.static %{buildroot}/bin/bsh.static |
---|
| 113 | ln -sf dash.static %{buildroot}/bin/ash.static |
---|
| 114 | |
---|
| 115 | |
---|
| 116 | %post |
---|
| 117 | if [ ! -f /etc/shells ]; then |
---|
| 118 | echo "/bin/dash" > /etc/shells |
---|
| 119 | echo "/bin/ash" >> /etc/shells |
---|
| 120 | echo "/bin/bsh" >> /etc/shells |
---|
| 121 | else |
---|
| 122 | if ! grep '^/bin/dash$' /etc/shells > /dev/null; then |
---|
| 123 | echo "/bin/dash" >> /etc/shells |
---|
| 124 | fi |
---|
| 125 | if ! grep '^/bin/ash$' /etc/shells > /dev/null; then |
---|
| 126 | echo "/bin/ash" >> /etc/shells |
---|
| 127 | fi |
---|
| 128 | if ! grep '^/bin/bsh$' /etc/shells > /dev/null; then |
---|
| 129 | echo "/bin/bsh" >> /etc/shells |
---|
| 130 | fi |
---|
| 131 | fi |
---|
| 132 | |
---|
| 133 | |
---|
| 134 | %postun |
---|
| 135 | if [ "$1" = "0" ]; then |
---|
| 136 | grep -v '^/bin/ash' < /etc/shells | grep -v '^/bin/dash' | grep -v '^/bin/bsh' > /etc/shells.new |
---|
| 137 | mv /etc/shells.new /etc/shells |
---|
| 138 | fi |
---|
| 139 | |
---|
| 140 | |
---|
| 141 | %triggerpostun -- ash |
---|
| 142 | if ! grep '^/bin/ash$' /etc/shells > /dev/null; then |
---|
| 143 | echo "/bin/ash" >> /etc/shells |
---|
| 144 | fi |
---|
| 145 | if ! grep '^/bin/bsh$' /etc/shells > /dev/null; then |
---|
| 146 | echo "/bin/bsh" >> /etc/shells |
---|
| 147 | fi |
---|
| 148 | |
---|
| 149 | %verifyscript |
---|
| 150 | |
---|
| 151 | for n in dash ash bsh; do |
---|
| 152 | echo -n "Looking for $n in /etc/shells... " |
---|
| 153 | if ! grep "^/bin/${n}\$" /etc/shells > /dev/null; then |
---|
| 154 | echo "missing" |
---|
| 155 | echo "${n} missing from /etc/shells" >&2 |
---|
| 156 | else |
---|
| 157 | echo "found" |
---|
| 158 | fi |
---|
| 159 | done |
---|
| 160 | |
---|
| 161 | |
---|
| 162 | %clean |
---|
| 163 | rm -rf %{buildroot} |
---|
| 164 | |
---|
| 165 | |
---|
| 166 | %files |
---|
| 167 | %defattr(-,root,root) |
---|
| 168 | /bin/dash |
---|
| 169 | /bin/ash |
---|
| 170 | /bin/bsh |
---|
| 171 | %{_mandir}/man1/* |
---|
| 172 | |
---|
| 173 | %files static |
---|
| 174 | %defattr(-,root,root) |
---|
| 175 | /bin/dash.static |
---|
| 176 | /bin/ash.static |
---|
| 177 | /bin/bsh.static |
---|
| 178 | |
---|
| 179 | |
---|
| 180 | %changelog |
---|
[3663] | 181 | * Sat Apr 23 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5.6-2 |
---|
| 182 | - update to 0.5.6 |
---|
| 183 | - BR: dietlibc >= 0.32 |
---|
| 184 | |
---|
[521] | 185 | * Wed Mar 25 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.5.5.1-1 |
---|
| 186 | - now ash (not maintained anymore?) replaced with dash |
---|
| 187 | - provide ash/bsh symlinks for compatibility |
---|
| 188 | - split statically-linked version into subpackage |
---|
| 189 | |
---|
| 190 | * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 0.3.8-6vl5 |
---|
| 191 | - applied new versioning policy, spec in utf-8 |
---|
| 192 | |
---|
| 193 | * Wed Sep 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.3.8-5vl3 |
---|
| 194 | - rebuild to add gpg sign |
---|
| 195 | |
---|
| 196 | * Mon Apr 25 2003 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 0.3.8-5v2 |
---|
| 197 | - rebuild |
---|
| 198 | |
---|
| 199 | * Fri Dec 06 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 0.3.8-5vl1 |
---|
| 200 | - based on 0.3.8-5 from Rawhide and built for Vine Linux |
---|
| 201 | - added Japanese summary and description |
---|
| 202 | |
---|
| 203 | * Wed Jul 17 2002 Trond Eivind Glomsr <teg@redhat.com> 0.3.8-5 |
---|
| 204 | - Update to -38 diff |
---|
| 205 | - man page fixes (#63528) |
---|
| 206 | |
---|
| 207 | * Fri Jun 21 2002 Tim Powers <timp@redhat.com> |
---|
| 208 | - automated rebuild |
---|
| 209 | |
---|
| 210 | * Thu May 23 2002 Tim Powers <timp@redhat.com> |
---|
| 211 | - automated rebuild |
---|
| 212 | |
---|
| 213 | * Wed Jan 09 2002 Tim Powers <timp@redhat.com> |
---|
| 214 | - automated rebuild |
---|
| 215 | |
---|
| 216 | * Tue Dec 11 2001 Trond Eivind Glomsr <teg@redhat.com> 0.3.8-1 |
---|
| 217 | - 0.3.8 |
---|
| 218 | - Patch to make it build |
---|
| 219 | - workaround for oddities in the alpha compiler |
---|
| 220 | |
---|
| 221 | * Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com> |
---|
| 222 | - Bump release + rebuild. |
---|
| 223 | |
---|
| 224 | * Mon Jan 08 2001 Preston Brown <pbrown@redhat.com> |
---|
| 225 | - ported much newer version from Debian |
---|
| 226 | - alpha is miscompiling mkinit helper utility; work around w/o optimization |
---|
| 227 | |
---|
| 228 | * Thu Dec 7 2000 Crutcher Dunnavant <crutcher@redhat.com> |
---|
| 229 | - intial rebuild for 7.1 |
---|
| 230 | |
---|
| 231 | * Wed Aug 30 2000 Matt Wilson <msw@redhat.com> |
---|
| 232 | - rebuild to cope with glibc locale binary incompatibility, again |
---|
| 233 | |
---|
| 234 | * Wed Jul 19 2000 Jakub Jelinek <jakub@redhat.com> |
---|
| 235 | - rebuild to cope with glibc locale binary incompatibility |
---|
| 236 | |
---|
| 237 | * Wed Jul 12 2000 Prospector <bugzilla@redhat.com> |
---|
| 238 | - automatic rebuild |
---|
| 239 | |
---|
| 240 | * Wed Jun 21 2000 Jakub Jelinek <jakub@redhat.com> |
---|
| 241 | - mksyntax had undefined behaviour, make it conforming. |
---|
| 242 | |
---|
| 243 | * Mon Jun 12 2000 Preston Brown <pbrown@redhat.com> |
---|
| 244 | - FHS fixes |
---|
| 245 | - had to disable optimization for sparc, was producing a mksyntax binary that |
---|
| 246 | infinitely looped! FIX ME. |
---|
| 247 | |
---|
| 248 | * Wed Mar 29 2000 Bill Nottingham <notting@redhat.com> |
---|
| 249 | - fix bug in 'ash -e' handling |
---|
| 250 | |
---|
| 251 | * Thu Feb 03 2000 Preston Brown <pbrown@redhat.com> |
---|
| 252 | - gzipped man pages |
---|
| 253 | |
---|
| 254 | * Mon Oct 04 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 255 | - rebuild against the lastest glibc in the sparc tree |
---|
| 256 | |
---|
| 257 | * Sat Sep 11 1999 Bill Nottingham <notting@redhat.com> |
---|
| 258 | - fix bogosity with fd's > 0 |
---|
| 259 | - fix builtin echo to understand -n & -e at the same time |
---|
| 260 | |
---|
| 261 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 262 | - auto rebuild in the new build environment (release 17) |
---|
| 263 | |
---|
| 264 | * Wed Feb 24 1999 Preston Brown <pbrown@redhat.com> |
---|
| 265 | - Injected new description and group. |
---|
| 266 | |
---|
| 267 | * Tue Jan 12 1999 Cristian Gafton <gafton@redhat.com> |
---|
| 268 | - build on glibc 2.1 |
---|
| 269 | |
---|
| 270 | * Fri Nov 06 1998 Preston Brown <pbrown@redhat.com> |
---|
| 271 | - updated to correct path on SunSITE. |
---|
| 272 | |
---|
| 273 | * Fri Aug 28 1998 Jeff Johnson <jbj@redhat.com> |
---|
| 274 | - recompile statically linked binary for 5.2/sparc |
---|
| 275 | |
---|
| 276 | * Tue May 05 1998 Prospector System <bugs@redhat.com> |
---|
| 277 | - translations modified for de, fr, tr |
---|
| 278 | |
---|
| 279 | * Mon Oct 20 1997 Erik Troan <ewt@redhat.com> |
---|
| 280 | - made /bin/ash built shared |
---|
| 281 | - added ash.static |
---|
| 282 | - uses a buildroot and %attr |
---|
| 283 | |
---|
| 284 | * Sun Aug 24 1997 Erik Troan <ewt@redhat.com> |
---|
| 285 | - built against glibc |
---|
| 286 | - statically linked |
---|
| 287 | |
---|
| 288 | * Wed Apr 16 1997 Erik Troan <ewt@redhat.com> |
---|
| 289 | - fixed preinstall script to >> /etc/shells for bsh. |
---|