diff options
author | osa <osa@FreeBSD.org> | 2011-02-25 12:37:09 +0800 |
---|---|---|
committer | osa <osa@FreeBSD.org> | 2011-02-25 12:37:09 +0800 |
commit | f3bea1ca837db1849f5e57d425a1130a9131b105 (patch) | |
tree | 94effe221248d123c5b3e10ed63073fd117643c3 | |
parent | 2a992241c7559a253b29a7c7502fe0c4b884a31b (diff) | |
download | freebsd-ports-gnome-f3bea1ca837db1849f5e57d425a1130a9131b105.tar.gz freebsd-ports-gnome-f3bea1ca837db1849f5e57d425a1130a9131b105.tar.zst freebsd-ports-gnome-f3bea1ca837db1849f5e57d425a1130a9131b105.zip |
More cleaning removed port redis1.
Notice from: sunpoet
-rw-r--r-- | databases/redis1/files/patch-redis.conf | 34 | ||||
-rw-r--r-- | databases/redis1/files/pkg-install.in | 85 | ||||
-rw-r--r-- | databases/redis1/files/pkg-message.in | 8 | ||||
-rw-r--r-- | databases/redis1/files/redis.sh.in | 35 |
4 files changed, 0 insertions, 162 deletions
diff --git a/databases/redis1/files/patch-redis.conf b/databases/redis1/files/patch-redis.conf deleted file mode 100644 index 4aab6fedaf65..000000000000 --- a/databases/redis1/files/patch-redis.conf +++ /dev/null @@ -1,34 +0,0 @@ ---- redis.conf.orig 2009-12-27 11:54:09.000000000 +0300 -+++ redis.conf 2009-12-27 11:56:16.000000000 +0300 -@@ -2,11 +2,11 @@ - - # By default Redis does not run as a daemon. Use 'yes' if you need it. - # Note that Redis will write a pid file in /var/run/redis.pid when daemonized. --daemonize no -+daemonize yes - - # When run as a daemon, Redis write a pid file in /var/run/redis.pid by default. - # You can specify a custom pid file location here. --pidfile /var/run/redis.pid -+pidfile %%REDIS_RUNDIR%%/redis.pid - - # Accept connections on the specified port, default is 6379 - port 6379 -@@ -29,7 +29,7 @@ - # Specify the log file name. Also 'stdout' can be used to force - # the demon to log on the standard output. Note that if you use standard - # output for logging but daemonize, logs will be sent to /dev/null --logfile stdout -+logfile %%REDIS_LOGDIR%%/redis.log - - # Set the number of databases. The default database is DB 0, you can select - # a different one on a per-connection basis using SELECT <dbid> where -@@ -64,7 +64,7 @@ - - # For default save/load DB in/from the working directory - # Note that you must specify a directory not a file name. --dir ./ -+dir %%REDIS_DBDIR%%/ - - ################################# REPLICATION ################################# - diff --git a/databases/redis1/files/pkg-install.in b/databases/redis1/files/pkg-install.in deleted file mode 100644 index 9eec80ea70f9..000000000000 --- a/databases/redis1/files/pkg-install.in +++ /dev/null @@ -1,85 +0,0 @@ -#!/bin/sh - -# $FreeBSD$ - -PATH=/bin:/usr/bin:/usr/sbin - -USER="%%REDIS_USER%%" -USER_ID="%%REDIS_UID%%" -GROUP="%%REDIS_GROUP%%" -GROUP_ID="%%REDIS_GID%%" - -RUNTIME_DIRS="%%REDIS_LOGDIR%% %%REDIS_DBDIR%% %%REDIS_RUNDIR%%" - -case $2 in -PRE-INSTALL) - -if [ `id -u` -ne 0 ]; then - echo; echo "You must be root to run this step!"; echo; echo - exit 1 -fi - -RES=`pw groupshow -n ${GROUP} 2>/dev/null` -if [ $? -eq 0 ]; then - echo "You already have a group \"${GROUP}\", so we will use it." -else - RES=`pw groupshow -g ${GROUP_ID} 2>/dev/null` - if [ $? -ne 0 ]; then - _GID="-g ${GROUP_ID}" - else - _GID='' - fi - - if pw groupadd -n ${GROUP} ${_GID}; then - echo "Added group \"${GROUP}\"." - else - echo "Adding group \"${GROUP}\" failed..." - exit 1 - fi -fi - -RES=`id -u ${USER} 2>/dev/null` -if [ $? -ne 0 ]; then - RES=`id -un ${USER_ID} 2>/dev/null` - if [ $? -ne 0 ]; then - _UID="-u ${USER_ID}" - else - _UID='' - fi - - if pw useradd -n ${USER} ${_UID} -g ${GROUP} \ - -w no -s /usr/sbin/nologin; then - echo "Added user \"${USER}\"." - else - echo "Adding user \"${USER}\" failed..." - exit 1 - fi -fi - -;; - -POST-INSTALL) - -for DIR in ${RUNTIME_DIRS}; do - mkdir -p ${DIR} - chown -R ${USER}:${GROUP} ${DIR} - chmod -R 755 ${DIR} -done - -;; - -DEINSTALL) - -if [ -z ${UPGRADE_PORT} ] ; then - - echo - echo "If you do not intend to reinstall \"%%PORTNAME%%\" you should manually" - echo "remove user '${USER}' (uid='${USER_ID}') and group '${GROUP}' (gid='${USER_ID}')." - echo - echo "Also you may want to remove the no longer required directoris:" - echo ${RUNTIME_DIRS} - echo - -fi - -esac diff --git a/databases/redis1/files/pkg-message.in b/databases/redis1/files/pkg-message.in deleted file mode 100644 index fd3763137ea3..000000000000 --- a/databases/redis1/files/pkg-message.in +++ /dev/null @@ -1,8 +0,0 @@ - -===> CONFIGURATION NOTE: - - To setup "%%PORTNAME%%" you need to edit the configuration file: - %%PREFIX%%/etc/%%PORTNAME%%.conf - - To run redis from startup, add %%PORTNAME%%_enable="YES" - in your /etc/rc.conf. diff --git a/databases/redis1/files/redis.sh.in b/databases/redis1/files/redis.sh.in deleted file mode 100644 index 30d006b15c54..000000000000 --- a/databases/redis1/files/redis.sh.in +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: redis -# REQUIRE: LOGIN -# BEFORE: securelevel -# KEYWORD: shutdown - -# Add the following line to /etc/rc.conf to enable `redis': -# -#redis_enable="YES" -# - -. /etc/rc.subr - -name="redis" -rcvar=`set_rcvar` - -extra_commands="reload" - -command="%%PREFIX%%/bin/redis-server" -config_file="%%PREFIX%%/etc/$name.conf" -command_args="${config_file}" -pidfile="%%REDIS_RUNDIR%%/$name.pid" -required_files="${config_file}" - -# read configuration and set defaults -load_rc_config "$name" -: ${redis_enable="NO"} -: ${redis_user="%%REDIS_USER%%"} -: ${redis_flags=""} - -run_rc_command "$1" |