ports/152745: [PATCH] databases/pgpool-II: fix install by unprivileged user (with SU_CMD)

Anton Yuzhaninov ayuzhaninov at db04.dev.vega.ru
Wed Dec 1 15:00:28 UTC 2010

>Number:         152745
>Category:       ports
>Synopsis:       [PATCH] databases/pgpool-II: fix install by unprivileged user (with SU_CMD)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 01 15:00:26 UTC 2010
>Originator:     Anton Yuzhaninov
>Release:        FreeBSD 7.3-PRERELEASE-20100201 amd64

Almost all FreeBSD ports can be installed by unprivileged user - SU_CMD used
for make install and other targets requiring root.
databases/pgpool-II fails to be installed without root root even if SU_CMD is used.

While here remove deprecated MD5.

Port maintainer (kuriyama at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
$ cd /usr/ports/databases/pgpool-II
$ export SU_CMD="/usr/local/bin/sudo /bin/sh -c"
$ $ make install
===>  Installing for pgpool-II-3.0.1
===>   pgpool-II-3.0.1 depends on shared library: pq.5 - found
/bin/mkdir -p /usr/local/share/pgpool-II /usr/local/share/examples/pgpool-II
mkdir: /usr/local/share/pgpool-II: Permission denied
mkdir: /usr/local/share/examples/pgpool-II: Permission denied
*** Error code 1

Stop in /usr/ports/databases/pgpool-II.
--- pgpool-II-3.0.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/databases/pgpool-II/Makefile /usr/home/ayuzhaninov/pgpool-II/Makefile
--- /usr/ports/databases/pgpool-II/Makefile	2010-10-22 13:54:57.000000000 +0000
+++ /usr/home/ayuzhaninov/pgpool-II/Makefile	2010-12-01 14:45:40.000000000 +0000
@@ -37,13 +37,11 @@
 	@cd ${WRKSRC}/sql/pgpool-recovery && ${GMAKE}
 	@cd ${WRKSRC}/sql/pgpool-recovery && ${GMAKE} ${INSTALL_TARGET}
 	${INSTALL_DATA} ${WRKSRC}/sample/dist_def_pgbench.sql ${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/sample/replicate_def_pgbench.sql ${DATADIR}
 .for f in pgpool_recovery pgpool_recovery_pitr pgpool_remote_start
diff -ruN --exclude=CVS /usr/ports/databases/pgpool-II/distinfo /usr/home/ayuzhaninov/pgpool-II/distinfo
--- /usr/ports/databases/pgpool-II/distinfo	2010-10-23 03:26:11.000000000 +0000
+++ /usr/home/ayuzhaninov/pgpool-II/distinfo	2010-12-01 14:27:03.000000000 +0000
@@ -1,3 +1,2 @@
-MD5 (pgpool-II-3.0.1.tar.gz) = 86d8beff0396d11b6753dd2be31bcad7
 SHA256 (pgpool-II-3.0.1.tar.gz) = 3adfa1f92dee238abec2dd6880985da99b1e2d862e567994e9e2f2736a872ae0
 SIZE (pgpool-II-3.0.1.tar.gz) = 1226151
--- pgpool-II-3.0.1.patch ends here ---

More information about the freebsd-ports-bugs mailing list