summaryrefslogtreecommitdiff
path: root/mail/qpopper/patches/patch-am
blob: cbf2fcb24ae0da78027c14769dd7d9854fc1aeb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
$NetBSD: patch-am,v 1.2 2002/11/23 17:01:21 taca Exp $

--- popper/Makefile.in.orig	Mon Apr 23 07:55:27 2001
+++ popper/Makefile.in	Fri Nov 22 15:35:20 2002
@@ -87,6 +87,8 @@
 prefix          =   @prefix@
 exec_prefix     =   @exec_prefix@
 installdir      =   @sbindir@
+libexecdir	=   @libexecdir@
+sbindir		=   @sbindir@
 
 popper_srcdir   =   ${top_srcdir}/popper
 qd_srcdir       =   ${top_srcdir}/qd
@@ -199,17 +201,14 @@
 ${POPAUTHSRCS}:
 
 install: popper ${pop_auth}
-	${INSTALL} -s -m 0755 -o root popper ${installdir}/popper
-	echo "Installed popper as ${installdir}/popper"
-	if [ "x${poppassd}" != "x" ]; then \
-	    cd ${password_dir} && ${MAKE} $@ ;\
-	fi
-	if [ "x${pop_auth}" != "x" ]; then \
-	    ${INSTALL} -s -m 4755 -o ${apop_uid} -g 0 ${pop_auth} \
-	               ${installdir}/${pop_auth}; \
-	    echo "Installed popauth as ${installdir}/${pop_auth} " \
+	${INSTALL} -s -m 0755 -o root popper ${libexecdir}/qpopper
+	@echo "Installed popper as ${libexecdir}/qpopper"
+	@if [ "x${pop_auth}" != "x" ]; then \
+	    ${INSTALL} -s -m 4755 -o ${apop_uid} -g ${BINGRP} ${pop_auth} \
+	               ${sbindir}/q${pop_auth}; \
+	    echo "Installed popauth as ${sbindir}/q${pop_auth} " \
 	         "with uid ${apop_uid}"; \
-	    ${installdir}/${pop_auth} -init -safe; \
+	    ${sbindir}/q${pop_auth} -init -safe; \
 	fi
 
 clean: