Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 May 2012 20:47:23 +0900
From:      Vladimir Galaichuk <ln@ruweb.net>
To:        freebsd-apache@freebsd.org
Cc:        ln@ruweb.net
Subject:   Problem with port www/apache22 in FreeBSD
Message-ID:  <20120513204723.34757f75@andLinux>

next in thread | raw e-mail | index | archive | help
hello

if to make port (www/apache22) with an option:
WITH_ALL_STATIC_MODULES=yes, suexec won't belong to this port.

problem example:
==============================================================
# cat /etc/make.conf
.if ${.CURDIR:M*/www/apache22}
    WITH_ALL_STATIC_MODULES=yes
    SUEXEC_DOCROOT=/ home/
    SUEXEC_LOGFILE=/ var/log/httpd/suexec_log
    WITH_SUEXEC=yes
    SUEXEC_UIDMIN=100
    SUEXEC_GIDMIN=100
    SUEXEC_CALLER="apache"
.endif

# ls -al /usr/local/sbin/suexec
ls: /usr/local/sbin/suexec: No such file or directory

#cd /usr/ports/www/apache22

# make clean && make install clean

# ls -al /usr/local/sbin/suexec
-rwsr-xr-x  1 root  wheel  25404 May 13 08:36 /usr/local/sbin/suexec

# pkg_which /usr/local/sbin/suexec
[Updating the pkgdb <format:b db_btree> in /var/db/pkg ... - 244 packages found (-1 +1) (...). done]
?

# grep 'sbin/suexec' /var/db/pkg/apache-2.2.22_5/+CONTENTS
@comment sbin/suexec

#pkg_delete -f apache-2.2.22_5

# ls -al /usr/local/sbin/suexec
-rwsr-xr-x  1 root  wheel  25404 May 13 08:36 /usr/local/sbin/suexec
==============================================================



example without the option: WITH_ALL_STATIC_MODULES=yes 
(there is not problem)
==============================================================
# cat /etc/make.conf
.if ${.CURDIR:M*/www/apache22}
    SUEXEC_DOCROOT=/ home/
    SUEXEC_LOGFILE=/ var/log/httpd/suexec_log
    WITH_SUEXEC=yes
    SUEXEC_UIDMIN=100
    SUEXEC_GIDMIN=100
    SUEXEC_CALLER="apache"
.endif

# ls -al /usr/local/sbin/suexec
ls: /usr/local/sbin/suexec: No such file or directory

#cd /usr/ports/www/apache22

# make clean && make install clean

# ls -al /usr/local/sbin/suexec
-rwsr-xr-x  1 root  wheel  25404 May 13 08:42 /usr/local/sbin/suexec

# pkg_which /usr/local/sbin/suexec
[Updating the pkgdb <format:b db_btree> in /var/db/pkg ... - 244 packages found (-1 +1) (...). done]
apache-2.2.22_5

# grep 'sbin/suexec' /var/db/pkg/apache-2.2.22_5/+CONTENTS 
sbin/suexec
==============================================================

-- 
Sun, 13 May 2012 19:00:22 +0900
------------------------
Vladimir Galaichuk. ruweb.net



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120513204723.34757f75>