Magellan Linux

Annotation of /branches/R11-unstable/core/rdate/rdate-1.4-r12.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25057 - (hide annotations) (download)
Tue Nov 25 02:56:03 2014 UTC (9 years, 5 months ago) by niro
File size: 872 byte(s)
-release branches/R11-unstable
1 niro 19685 # $Id$
2    
3     PNAME="rdate"
4     PVER="1.4"
5     PBUILD="r12"
6    
7     PCAT="net-misc"
8    
9     DESCRIPTION="The rdate utility retrieves the date and time from another machine on your network."
10     HOMEPAGE="http://freshmeat.net/projects/rdate/"
11    
12     DEPEND=">= virtual/glibc"
13    
14     SRCFILE="${PNAME}-${PVER}.tar.gz"
15     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
16    
17     sminclude mtools systemd
18    
19     RC_CVS_REV=1.3
20    
21     SRC_URI=(
22     mirror://${PNAME}/${SRCFILE}
23     mirror://${PNAME}/rdate.service
24     mirror://${PNAME}/rdate.confd
25     )
26    
27     # fake
28     UP2DATE="echo ${PVER}"
29    
30     src_prepare()
31     {
32     munpack ${SRCFILE} || die
33     }
34    
35     src_compile()
36     {
37     cd ${SRCDIR}
38     mmake RCFLAGS="${CFLAGS}" || die
39     }
40    
41     src_install()
42     {
43     cd ${SRCDIR}
44     mmake prefix=${BINDIR}/usr install || die
45    
46     minstallunit rdate.service || die
47     minstallconf rdate.confd rdate || die
48    
49     minstalldocs COPYING || die
50     }
51    
52     postinstall()
53     {
54     mstartunit rdate.service
55     }
56    
57     postremove()
58     {
59     mstopunit rdate.service
60     }