Ignore:
Timestamp:
Sep 17, 2006, 10:03:34 AM (13 years ago)
Author:
pguyot@…
Message:

mail/qpopper: allow qpopper to be installed in a non-root MP installation.

Location:
trunk/dports/mail/qpopper
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/mail/qpopper/Portfile

    r19605 r19606  
    2020                                        sha1 5629aa86d92fe10565021980882dffb733ce73d9
    2121worksrcdir                      ${portname}${portversion}
    22 patchfiles                      patch-Makefile.in
     22patchfiles                      patch-Makefile.in patch-popper-Makefile.in
    2323configure.args          --mandir=${prefix}/share/man \
    2424                                        --without-pam
    2525destroot.destdir        prefix=${destroot}/${prefix} mandir=${destroot}/${prefix}/share/man
    2626
     27post-patch {
     28        reinplace "s|@@INSTALL.USER@@|${install.user}|g" \
     29                ${worksrcpath}/Makefile.in
     30        reinplace "s|@@INSTALL.USER@@|${install.user}|g" \
     31                ${worksrcpath}/popper/Makefile.in
     32}
     33
    2734pre-destroot {
    2835        xinstall -d ${destroot}${prefix}/etc/xinetd.d
    29         xinstall -o root -m 755 -c ${portpath}/files/qpopper-dist \
     36        xinstall -o ${install.user} -m 755 -c ${portpath}/files/qpopper-dist \
    3037                ${destroot}${prefix}/etc/xinetd.d/
    3138        reinplace "s|@@PREFIX@@|${prefix}|g" \
     
    5461        pre-destroot {
    5562                xinstall -d ${destroot}${prefix}/Library/LaunchDaemons/
    56                 xinstall -o root -m 755 -c ${portpath}/files/org.macports.mail.qpopper.plist-dist \
     63                xinstall -o ${install.user} -m 755 -c ${portpath}/files/org.macports.mail.qpopper.plist-dist \
    5764                        ${destroot}${prefix}/Library/LaunchDaemons/
    5865                reinplace "s|@@PREFIX@@|${prefix}|g" \
  • trunk/dports/mail/qpopper/files/patch-Makefile.in

    r3828 r19606  
    1 --- Makefile.in.orig    Tue Feb  4 18:33:01 2003
    2 +++ Makefile.in Mon Oct 27 01:05:31 2003
    3 @@ -58,6 +58,7 @@
     1--- Makefile.in.orig    2006-09-17 18:47:48.000000000 +0900
     2+++ Makefile.in 2006-09-17 18:49:40.000000000 +0900
     3@@ -58,9 +58,10 @@
    44        cd ${popper_dir}  && ${MAKE} all
    55 
    66 install:
     7-       ${INSTALL} -m 0644 -o root ${top_srcdir}/man/popper.8  ${mandir}/man8/
    78+       ${INSTALL} -d ${mandir}/man8
    8         ${INSTALL} -m 0644 -o root ${top_srcdir}/man/popper.8  ${mandir}/man8/
     9+       ${INSTALL} -m 0644 -o @@INSTALL.USER@@ ${top_srcdir}/man/popper.8  ${mandir}/man8/
    910        echo "Installed man/popper.8 as ${mandir}/man8/popper.8"
    10         ${INSTALL} -m 0644 -o root ${top_srcdir}/man/popauth.8 ${mandir}/man8/
     11-       ${INSTALL} -m 0644 -o root ${top_srcdir}/man/popauth.8 ${mandir}/man8/
     12+       ${INSTALL} -m 0644 -o @@INSTALL.USER@@ ${top_srcdir}/man/popauth.8 ${mandir}/man8/
     13        echo "Installed man/popauth.8 as ${mandir}/man8/popauth.8"
     14        cd ${popper_dir}  && ${MAKE} install
     15 
Note: See TracChangeset for help on using the changeset viewer.