Magellan Linux

Annotation of /trunk/core/dash/dash-0.5.9.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 29709 - (hide annotations) (download)
Tue Oct 10 07:13:00 2017 UTC (6 years, 8 months ago) by niro
File size: 821 byte(s)
-updated UP2DATE uri
1 niro 28446 # $Id$
2    
3     PNAME="dash"
4     PVER="0.5.9.1"
5     PBUILD="r1"
6    
7     PCAT="app-shells"
8    
9     DESCRIPTION="Small and fast POSIX-compliant shell."
10     HOMEPAGE="http://gondor.apana.org.au/~herbert/dash/"
11    
12     DEPEND=">= sys-apps/debianutils-4"
13    
14     SRCFILE="${PNAME}-${PVER}.tar.gz"
15     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16    
17     sminclude mbuild mtools
18    
19     SRC_URI=(
20     http://gondor.apana.org.au/~herbert/${PNAME}/files/${SRCFILE}
21     mirror://${PNAME}/${SRCFILE}
22     mirror://${PNAME}/${PNAME}-0.5.6.1-do-not-close-stderr.patch
23     )
24    
25 niro 29709 UP2DATE="updatecmd ${HOMEPAGE}/files/ | grep -v git | highesttarball gz"
26 niro 28446
27     src_prepare()
28     {
29     munpack ${SRCFILE} || die
30     cd ${SRCDIR}
31     mpatch ${PNAME}-0.5.6.1-do-not-close-stderr.patch || die
32     }
33    
34     postinstall()
35     {
36     # make sure dash is in /etc/shells
37     add-shell /bin/dash
38     }
39    
40     postremove()
41     {
42     if [[ ! -x /bin/dash ]]
43     then
44     remove-shell /bin/dash
45     fi
46     }