Browse Source

postgresql 9.0.7-2vl7

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@7299 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 11 years ago
parent
commit
8546c9800f
2 changed files with 11 additions and 4 deletions
  1. 5 1
      p/postgresql/postgresql-vl.spec
  2. 6 3
      p/postgresql/postgresql.init

+ 5 - 1
p/postgresql/postgresql-vl.spec

@@ -20,7 +20,7 @@ Summary: PostgreSQL client programs and libraries.
 Summary(ja): PostgreSQL のクライアントプログラム群およびライブラリ
 Name: postgresql
 Version: %{pgver}.7
-Release: 1%{?_dist_release}
+Release: 2%{?_dist_release}
 # Conventions for PostgreSQL Global Development Group RPM releases:
 #
 # Official PostgreSQL Development Group RPMS have a PGDG after the release number.
@@ -692,6 +692,10 @@ rm -rf $RPM_BUILD_ROOT
 %endif
 
 %changelog
+* Mon Jan  7 2013 IWAI, Masaharu <iwai@alib.jp> 9.0.7-2vl7
+- build with Tcl/Tk 8.5.7-1
+- fix init script (Source3): fix su(1) paramaters.
+
 * Tue Mar 06 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 9.0.7-1
 - new upstream release 
 - move euc2004_sjis2004.so from -contrib to -server (BTS:1266)

+ 6 - 3
p/postgresql/postgresql.init

@@ -56,9 +56,12 @@
 # Version 8.1 HOTTA Michihide <hotta@net-newbie.com>
 # Version 8.2 Shu KONNO <owa@bg.wakwak.com>
 
+# Version 9.0 IWAI, Masaharu <iwaim.sub@gmail.com>
+# fix su(1) paramaters in start() and stop().
+
 # PGVERSION must be replaced real version
 # In vine new postgresql.spec, version must be replaced by building
-PGVERSION=8.4
+PGVERSION=9.0
 
 # Source function library.
 INITD=/etc/rc.d/init.d
@@ -172,7 +175,7 @@ start(){
 		#all systems go -- remove any stale lock files
 		rm -f /tmp/.s.PGSQL.${PGPORT} > /dev/null
 		echo -n "$PSQL_START"
-		su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl  -D $PGDATA -p /usr/bin/postmaster -o '-p ${PGPORT}' start  > /dev/null 2>&1" < /dev/null
+		su -l -s /bin/sh -c "/usr/bin/pg_ctl  -D $PGDATA -p /usr/bin/postmaster -o '-p ${PGPORT}' start  > /dev/null 2>&1" postgres < /dev/null
  		sleep 1
  		pid=`pidof -s /usr/bin/postmaster`
  		if [ $pid ]
@@ -200,7 +203,7 @@ start(){
 
 stop(){
 	echo -n $"Stopping ${NAME} service: "
-	su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl stop -D $PGDATA -s -m fast" > /dev/null 2>&1
+	su -l -s /bin/sh -c "/usr/bin/pg_ctl stop -D $PGDATA -s -m fast" postgres > /dev/null 2>&1
 	ret=$? 
 	if [ $ret -eq 0 ]
 	then