diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2006-10-31 20:51:13 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2006-10-31 20:51:13 +0800 |
commit | 2cd2be4e7ce6850cf8ae94ac99ae1ad2ad446905 (patch) | |
tree | 4052947f3362cd235b195c12824923289370d9bd | |
parent | 4c38e1918bcba7c5c4dae7c153d173b8d6646b70 (diff) | |
download | freebsd-ports-gnome-2cd2be4e7ce6850cf8ae94ac99ae1ad2ad446905.tar.gz freebsd-ports-gnome-2cd2be4e7ce6850cf8ae94ac99ae1ad2ad446905.tar.zst freebsd-ports-gnome-2cd2be4e7ce6850cf8ae94ac99ae1ad2ad446905.zip |
Add dphys-config 20061013, a tool to distribute config files.
PR: 104378
Submitted by: Gurkan Sengun <gurkan@linuks.mine.nu>
-rw-r--r-- | misc/Makefile | 1 | ||||
-rw-r--r-- | misc/dphys-config/Makefile | 42 | ||||
-rw-r--r-- | misc/dphys-config/distinfo | 3 | ||||
-rw-r--r-- | misc/dphys-config/pkg-descr | 8 | ||||
-rw-r--r-- | misc/dphys-config/pkg-plist | 24 |
5 files changed, 78 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile index 2e19995fbf72..bb369d483882 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -69,6 +69,7 @@ SUBDIR += dnetc SUBDIR += documancer SUBDIR += dotfile + SUBDIR += dphys-config SUBDIR += dtach SUBDIR += dvorak7min SUBDIR += dvorakng diff --git a/misc/dphys-config/Makefile b/misc/dphys-config/Makefile new file mode 100644 index 000000000000..8dc8bf540784 --- /dev/null +++ b/misc/dphys-config/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: dphys-config +# Date created: 12 Oct 2006 +# Whom: <gurkan@linuks.mine.nu> +# +# $FreeBSD$ +# + +PORTNAME= dphys-config +PORTVERSION= 20061013 +CATEGORIES= misc +MASTER_SITES= http://www.phys.ethz.ch/~franklin/Projects/ \ + http://florida.ethz.ch/ports/distfiles/ \ + +MAINTAINER= gurkan@linuks.mine.nu +COMMENT= Tool to distribute config files + +RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget + +NO_BUILD= yes + +MAN1= dphys-config.1 + +post-patch: + @${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${PORTNAME} + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1 + ${MKDIR} ${EXAMPLESDIR}/site.example/local/sbin +.for f in dphys-config.example cron.d.example init.d.example + ${INSTALL_DATA} ${WRKSRC}/${f} ${EXAMPLESDIR} +.endfor + ${INSTALL_DATA} ${WRKSRC}/site.example/${PORTNAME}* \ + ${EXAMPLESDIR}/site.example/ + ${INSTALL_DATA} ${WRKSRC}/site.example/local/sbin/${PORTNAME}-* \ + ${EXAMPLESDIR}/site.example/local/sbin/ + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${PREFIX}/etc/${PORTNAME}.sample +.if !exists(${PREFIX}/etc/${PORTNAME}) + ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${PREFIX}/etc/${PORTNAME} +.endif + +.include <bsd.port.mk> diff --git a/misc/dphys-config/distinfo b/misc/dphys-config/distinfo new file mode 100644 index 000000000000..47168b7bd7d8 --- /dev/null +++ b/misc/dphys-config/distinfo @@ -0,0 +1,3 @@ +MD5 (dphys-config-20061013.tar.gz) = 3a1902cb0c5ea159e185b1899f2f7b7d +SHA256 (dphys-config-20061013.tar.gz) = 902b45687d8eb4c401423e6ff2a3712736ee705b1738014100207cdfa46c0f10 +SIZE (dphys-config-20061013.tar.gz) = 40643 diff --git a/misc/dphys-config/pkg-descr b/misc/dphys-config/pkg-descr new file mode 100644 index 000000000000..79b745c8c55a --- /dev/null +++ b/misc/dphys-config/pkg-descr @@ -0,0 +1,8 @@ +This project is aimed at installing (and keeping update) the site specific +config files we want, after preprocessing them (conditional content and include +files and include sections). It also triggers postinstall scripts whenever their +associated config file has been changed. It can also remove config files, +including running an preremove script before doing so. All this is driven by an +simple config file list. + +WWW: http://www.phys.ethz.ch/~franklin/Projects/dphys-config/ diff --git a/misc/dphys-config/pkg-plist b/misc/dphys-config/pkg-plist new file mode 100644 index 000000000000..671a40f917be --- /dev/null +++ b/misc/dphys-config/pkg-plist @@ -0,0 +1,24 @@ +@comment $FreeBSD$ +bin/dphys-config +@unexec if cmp -s %D/etc/dphys-config %D/etc/dphys-config.sample; then rm -f %D/etc/dphys-config; fi +etc/dphys-config.sample +@exec [ -f %B/dphys-config ] || cp %B/%f %B/dphys-config +%%EXAMPLESDIR%%/cron.d.example +%%EXAMPLESDIR%%/dphys-config.example +%%EXAMPLESDIR%%/init.d.example +%%EXAMPLESDIR%%/site.example/dphys-config-filesys.list +%%EXAMPLESDIR%%/site.example/dphys-config-x +%%EXAMPLESDIR%%/site.example/dphys-config.list +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-altern-wwwbrowser +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-altern-xcursor +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-altern-xsession +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-altern-xterminal +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-exports +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-filesys +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-quota +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-usb-storage +%%EXAMPLESDIR%%/site.example/local/sbin/dphys-config-x +@dirrm %%EXAMPLESDIR%%/site.example/local/sbin +@dirrm %%EXAMPLESDIR%%/site.example/local +@dirrm %%EXAMPLESDIR%%/site.example +@dirrm %%EXAMPLESDIR%% |