[zopeorg-checkins] CVS: NZO_SiteLayout - Makefile.rsyncd:1.1 rsyncd_recipes.mk:1.1 rsyncd_targets.mk:1.1

Chris McDonough chrism at zope.com
Wed May 8 14:41:35 EDT 2002


Update of /cvs-zopeorg/NZO_SiteLayout
In directory cvs.zope.org:/tmp/cvs-serv3780

Added Files:
	Makefile.rsyncd rsyncd_recipes.mk rsyncd_targets.mk 
Log Message:
Adding rsyncd makefiles.


=== Added File NZO_SiteLayout/Makefile.rsyncd ===
########################################################################
#   Skeleton makefile for CVS-driven buildout
########################################################################

#-----------------------------------------------------------------------
#   Tools
#   =====
#
#   This section includes defines for all the standard tools used to
#   build out the site.
#
#   Edit 'tools.mk' to accomodate the locations of the utilities on your
#   system (defaults are for stock RedHat installs).
#-----------------------------------------------------------------------
include tools.mk

#-----------------------------------------------------------------------
#   CVS dependencies
#   ================
#
#   This section includes defines for all CVS checkouts needed to build
#   out the site, including repositories, module names, and tags for
#   each unique version.
#
#   Edit 'cvs.mk' to make a new revision available, or to retire old
#   ones.
#-----------------------------------------------------------------------
include cvs.mk

#-----------------------------------------------------------------------
#   Version selectors
#   =================
#
#   This section identifies the specific source revisions of the
#   packages used to build the site.
#
#   Modify the defines below to select a different revision from the
#   list called out in 'cvs.mk'.  You may also remove unneeded entries
#   (e.g., 'Makefile.squid' should only need the 'SQUID_CHECKOUT'
#   define).
#-----------------------------------------------------------------------

#-----------------------------------------------------------------------
#   Package-specific targets
#   ========================
#
#   The includes in this section import targets for each package and
#   configuration used to build out the site.
#
#   Add or remove imports from this section to correspond to the
#   software needed to build a particular server instance.
#-----------------------------------------------------------------------

include rsyncd_targets.mk

#-----------------------------------------------------------------------
#   Target selectors
#
#   Add / remove here as appropriate.
#-----------------------------------------------------------------------
ROOT_TARGETS=\
${RSYNCD_ROOT_TARGETS}

include standard_targets.mk

#=======================================================================
#   Recipes
#=======================================================================

include rsyncd_recipes.mk

#-----------------------------------------------------------------------
#	Generic rules
#-----------------------------------------------------------------------

${BASE_DIR}/src:
	${MKDIR} ${BASE_DIR}/src


=== Added File NZO_SiteLayout/rsyncd_recipes.mk ===
#=======================================================================
#	Rsync server recipes
#=======================================================================

SEDSCRIPT=\
-e "\
s@<<BASE_DIR>>@${BASE_DIR}@g;\
s@<<RUNAS_USER>>@$(shell whoami)@g\
"

CHKCONFIG=/sbin/chkconfig --level 2345

/etc/rsyncd.conf: AFTERCREATE=${TRUE}
/etc/rsyncd.conf: ${MAKEFILEDIR}/etc/rsyncd.conf.in

/etc/rc.d/init.d/rsyncd: AFTERCREATE=${CHKCONFIG} rsyncd on
/etc/rc.d/init.d/rsyncd: ${MAKEFILEDIR}/rc/rsyncd.rc.in

CONFIGS=\
/etc/rsyncd.conf \
/etc/rc.d/init.d/rsyncd \

${CONFIGS}:
	${SED} ${SEDSCRIPT} < $< > ${MAKEFILEDIR}/zss.rsync.tempfile
	${SUDO} mv ${MAKEFILEDIR}/zss.rsync.tempfile $@
	${SUDO} ${CHMOD} 755 $@ && ${SUDO} ${CHOWN} root.root $@
	${SUDO} ${AFTERCREATE}




=== Added File NZO_SiteLayout/rsyncd_targets.mk ===
#=======================================================================
#	Rsync server targets
#=======================================================================
RSYNCD_ROOT_TARGETS=\
/etc/rc.d/init.d/rsyncd \
/etc/rsyncd.conf \







More information about the zopeorg-checkins mailing list