- switch to pkg-readmes
This commit is contained in:
parent
8879e1dba0
commit
8f68e4b485
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.9 2010/10/18 19:59:16 espie Exp $
|
||||
# $OpenBSD: Makefile,v 1.10 2010/11/15 18:13:55 jasper Exp $
|
||||
|
||||
COMMENT-main= accept email on behalf of real sendmail
|
||||
COMMENT-chroot= static mini_sendmail for chrooted apache
|
||||
@ -6,8 +6,10 @@ COMMENT-chroot= static mini_sendmail for chrooted apache
|
||||
V= 1.3.6
|
||||
DISTNAME= mini_sendmail-${V}
|
||||
PKGNAME= mini_sendmail-${V}p0
|
||||
PKGNAME-main= mini_sendmail-${V}p0
|
||||
PKGNAME-chroot= mini_sendmail-chroot-${V}p0
|
||||
PKGNAME-main= mini_sendmail-${V}
|
||||
REVISION-main= 1
|
||||
PKGNAME-chroot= mini_sendmail-chroot-${V}
|
||||
REVISION-chroot=0
|
||||
CATEGORIES= mail www
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
@ -34,7 +36,6 @@ do-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mini_sendmail
|
||||
${INSTALL_MAN} ${WRKSRC}/mini_sendmail.8 ${PREFIX}/man/man8
|
||||
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/mini_sendmail
|
||||
${INSTALL_DATA} ${FILESDIR}/README.php ${PREFIX}/share/doc/mini_sendmail
|
||||
${INSTALL_PROGRAM_DIR} ${WRKINST}/var/www/bin
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/mini_sendmail-static \
|
||||
${WRKINST}/var/www/bin/mini_sendmail
|
||||
|
@ -1,25 +0,0 @@
|
||||
$OpenBSD: README.php,v 1.1 2004/10/14 01:44:06 jolan Exp $
|
||||
Author: Jolan Luff <jolan@openbsd.org>
|
||||
|
||||
First things first, we need to install the chroot subpackage of
|
||||
mini_sendmail if you have not done so already. This will put a
|
||||
statically linked mini_sendmail binary into a location reachable by
|
||||
Apache when it is under chroot(2), /var/www/bin/mini_sendmail to be
|
||||
precise.
|
||||
|
||||
Next, we need to tell PHP about our fake sendmail binary. The php.ini
|
||||
examples leave the sendmail_path directive commented out. We need to
|
||||
change it to point to mini_sendmail:
|
||||
|
||||
;sendmail_path =
|
||||
sendmail_path = "/bin/mini_sendmail -t -i"
|
||||
|
||||
PHP executes mini_sendmail by using the popen(3) function.
|
||||
Unfortunately, this means we are required to copy /bin/sh into the
|
||||
Apache chroot area:
|
||||
|
||||
# cp -p /bin/sh /var/www/bin/sh
|
||||
|
||||
If everything has been performed correctly, after a stop and restart of
|
||||
Apache (if it is running), we should now be able to utilize the PHP
|
||||
mail() function.
|
@ -1,2 +1,2 @@
|
||||
@comment $OpenBSD: PLIST-chroot,v 1.3 2007/11/24 16:12:18 steven Exp $
|
||||
bin/mini_sendmail
|
||||
@comment $OpenBSD: PLIST-chroot,v 1.4 2010/11/15 18:13:55 jasper Exp $
|
||||
@bin bin/mini_sendmail
|
||||
|
@ -1,7 +1,7 @@
|
||||
@comment $OpenBSD: PLIST-main,v 1.1 2006/11/26 09:37:39 steven Exp $
|
||||
@comment $OpenBSD: PLIST-main,v 1.2 2010/11/15 18:13:55 jasper Exp $
|
||||
@pkgpath mail/mini_sendmail
|
||||
bin/mini_sendmail
|
||||
@bin bin/mini_sendmail
|
||||
@man man/man8/mini_sendmail.8
|
||||
share/doc/mini_sendmail/
|
||||
share/doc/mini_sendmail/README
|
||||
share/doc/mini_sendmail/README.php
|
||||
share/doc/pkg-readmes/${FULLPKGNAME}
|
||||
|
@ -1,9 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.13 2010/10/18 21:50:39 sthen Exp $
|
||||
# $OpenBSD: Makefile,v 1.14 2010/11/15 18:13:45 jasper Exp $
|
||||
|
||||
COMMENT= DNS relay for ad blocking
|
||||
|
||||
DISTNAME= adsuck-1.9
|
||||
REVISION= 0
|
||||
REVISION= 1
|
||||
CATEGORIES= net
|
||||
|
||||
HOMEPAGE= http://opensource.conformal.com/wiki/Adsuck
|
||||
@ -34,8 +34,6 @@ post-install:
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/adsuck
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/adsuck
|
||||
${INSTALL_DATA} ${WRKSRC}/files/README ${PREFIX}/share/doc/adsuck
|
||||
${SUBST_CMD} -c ${FILESDIR}/README.dhclient ${WRKDIR}/README.dhclient
|
||||
${INSTALL_DATA} ${WRKDIR}/README.dhclient ${PREFIX}/share/doc/adsuck/README.dhclient
|
||||
${INSTALL_DATA} ${FILESDIR}/dhclient-script.diff ${PREFIX}/share/adsuck
|
||||
.for _f in ${_files}
|
||||
${INSTALL_DATA} ${WRKSRC}/files/${_f} ${PREFIX}/share/examples/adsuck
|
||||
|
@ -1,4 +1,3 @@
|
||||
To play nice with dhclient, read ${TRUEPREFIX}/share/doc/adsuck/README.dhclient
|
||||
To have adsuck start at boot time, put something
|
||||
like this in /etc/rc.conf.local:
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.2 2009/03/09 03:57:39 todd Exp $
|
||||
@comment $OpenBSD: PLIST,v 1.3 2010/11/15 18:13:45 jasper Exp $
|
||||
@newgroup _adsuck:620
|
||||
@newuser _adsuck:620:_adsuck:daemon:adsuck Daemon:/var/empty:/sbin/nologin
|
||||
@man man/cat8/adsuck.0
|
||||
@ -7,7 +7,7 @@ share/adsuck/
|
||||
share/adsuck/dhclient-script.diff
|
||||
share/doc/adsuck/
|
||||
share/doc/adsuck/README
|
||||
share/doc/adsuck/README.dhclient
|
||||
share/doc/pkg-readmes/${FULLPKGNAME}
|
||||
share/examples/adsuck/
|
||||
@sample /var/adsuck/
|
||||
@sample /var/adsuck/files/
|
||||
|
@ -1,3 +1,5 @@
|
||||
$OpenBSD: README,v 1.1 2010/11/15 18:13:45 jasper Exp $
|
||||
|
||||
To make dhclient play nice with adsuck, patching dhclient-script is necessary:
|
||||
|
||||
cd /sbin
|
Loading…
Reference in New Issue
Block a user