aboutsummaryrefslogtreecommitdiff
path: root/scripts/Old/cronjob.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/Old/cronjob.py')
0 files changed, 0 insertions, 0 deletions
;sra@hactrn.net> 2013-02-01 18:38:48 +0000 committer Rob Austein <sra@hactrn.net> 2013-02-01 18:38:48 +0000 Checkpoint' href='/sra/rpki.net/commit/rcynic/rules.freebsd.mk?id=27d85628a8ebe96c3adc2dbeac0e58160c727071'>27d85628
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

      
                              
                                                                   









                                                                                     
                                                                 









                                                                                                                                     





                                                                       


                                                                                                                 
# $Id$

install-user-and-group: .FORCE
	@if /usr/sbin/pw groupshow "${RCYNIC_GROUP}" 2>/dev/null; \
	then \
	    echo "You already have a group \"${RCYNIC_GROUP}\", so I will use it."; \
	elif /usr/sbin/pw groupadd ${RCYNIC_GROUP}; \
	then \
	    echo "Added group \"${RCYNIC_GROUP}\"."; \
	else \
	    echo "Adding group \"${RCYNIC_GROUP}\" failed..."; \
	    echo "Please create it, then try again."; \
	    exit 1; \
	fi
	@if /usr/sbin/pw usershow "${RCYNIC_USER}" 2>/dev/null; \
	then \
	    echo "You already have a user \"${RCYNIC_USER}\", so I will use it."; \
	elif /usr/sbin/pw useradd ${RCYNIC_USER} -g ${RCYNIC_GROUP} -h - -d /nonexistant -s /usr/sbin/nologin -c "${RCYNIC_GECOS}"; \
	then \
	    echo "Added user \"${RCYNIC_USER}\"."; \
	else \
	    echo "Adding user \"${RCYNIC_USER}\" failed..."; \
	    echo "Please create it, then try again."; \
	    exit 1; \
	fi


# We use static compilation on FreeBSD, so no need for shared libraries

install-shared-libraries: 
	@true

install-rc-scripts:
	${INSTALL} -m 555 -o root -g wheel -p rc-scripts/freebsd/rc.d.rcynic ${DESTDIR}/usr/local/etc/rc.d/rcynic