Magellan Linux

Diff of /smage/trunk/extras/logrotate/logrotate-3.12.3-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10615 by niro, Fri Aug 25 12:40:56 2017 UTC revision 10616 by niro, Fri Aug 25 12:46:55 2017 UTC
# Line 10  DESCRIPTION="Rotates, compresses, remove Line 10  DESCRIPTION="Rotates, compresses, remove
10  HOMEPAGE="https://github.com/logrotate/logrotate/"  HOMEPAGE="https://github.com/logrotate/logrotate/"
11    
12  DEPEND=">= virtual/glibc  DEPEND=">= virtual/glibc
13     >= virtual/gzip
14   >= dev-libs/popt-1.16"   >= dev-libs/popt-1.16"
15    
16  SDEPEND=">= virtual/sed  SDEPEND=">= virtual/sed
# Line 19  SRCFILE="${PNAME}-${PVER}.tar.gz" Line 20  SRCFILE="${PNAME}-${PVER}.tar.gz"
20  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21    
22  ALX_PKG_KEEP="etc usr/sbin/logrotate"  ALX_PKG_KEEP="etc usr/sbin/logrotate"
23  sminclude mtools alx-split  sminclude mbuild mtools alx-split
24    
25  SRC_URI=(  SRC_URI=(
26   https://github.com/logrotate/${PNAME}/releases/download/${PVER}/${SRCFILE}   https://github.com/logrotate/${PNAME}/releases/download/${PVER}/${SRCFILE}
# Line 30  SRC_URI=( Line 31  SRC_URI=(
31    
32  UP2DATE="updatecmd https://github.com/logrotate/logrotate/releases | highesttarball xz"  UP2DATE="updatecmd https://github.com/logrotate/logrotate/releases | highesttarball xz"
33    
34  src_prepare()  src_compile()
35  {  {
  munpack ${SRCFILE} || die  
36   cd ${SRCDIR}   cd ${SRCDIR}
37    
38   # fix a small glitch in the man pages   mconfigure \
39   sed -i "s:logrotate/status:logrotate.status:" logrotate.8 || die   --with-compress-command=/usr/bin/gzip \
40  }   --with-uncompress-command=/usr/bin/gunzip \
41     --with-default-mail-command=/usr/bin/mail \
42     --without-acl \
43     || die
44    
45  src_compile()   mmake || die
 {  
  cd ${SRCDIR}  
  mmake RPM_OPT_FLAGS="${CFLAGS}" || die  
46  }  }
47    
48  alx_generic_src_install()  alx_generic_src_install()
49  {  {
50   cd ${SRCDIR}   cd ${SRCDIR}
51    
52   # needed directories   mmake DESTDIR=${BINDIR} install || die
  minstalldir /usr/sbin || die  
   
  # bins  
  minstallexec logrotate /usr/sbin || die  
53    
54   # conf   # conf
55   minstalletc logrotate.conf-3.7.1 logrotate.conf || die   minstalletc logrotate.conf-3.7.1 logrotate.conf || die
# Line 61  alx_generic_src_install() Line 57  alx_generic_src_install()
57   # cron   # cron
58   minstallcron daily logrotate.cron-3.7.1 logrotate || die   minstallcron daily logrotate.cron-3.7.1 logrotate || die
59    
  # man  
  minstallman logrotate.8 || die  
   
60   # mark it undeletable   # mark it undeletable
61   mkeepdir /etc/logrotate.d || die   mkeepdir /etc/logrotate.d || die
62    

Legend:
Removed from v.10615  
changed lines
  Added in v.10616