Subject: proftpd + opie pkgsrc
To: None <tech-pkg@netbsd.org>
From: OGATA <ogata@isp.qix.org>
List: tech-pkg
Date: 08/26/2002 00:51:59
I was quick hacked pkgsrc of proftpd + opie.
If you commit it, I think need more cool hack :P
please enjoy :)
# I'm busy now, sorry I wasn't work make package of Zoularis on Mac OS X.
# If you have Mac OS X machine, please try make package and provide result it.
# Of cource, I don't get jaguar(10.2) ;<
OGATA Hiroshi <ogata@isp.qix.org> BSD lover :)
Zoularis for Darwin/Mac OS X: http://www.netbsd.org/zoularis/#darwin
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# proftpd
# proftpd/DESCR
# proftpd/Makefile
# proftpd/PLIST
# proftpd/distinfo
# proftpd/patches
# proftpd/patches/patch-aa
# proftpd/patches/patch-ab
# proftpd/patches/patch-ac
# proftpd/patches/patch-ad
# proftpd/files
# proftpd/files/mod_opie.c.diff
#
echo c - proftpd
mkdir -p proftpd > /dev/null 2>&1
echo x - proftpd/DESCR
sed 's/^X//' >proftpd/DESCR << 'END-of-proftpd/DESCR'
XProFTPD is a highly configurable ftp daemon for unix
Xand unix-like operating systems. ProFTPD has a Apache-like
Xconfiguration format.
END-of-proftpd/DESCR
echo x - proftpd/Makefile
sed 's/^X//' >proftpd/Makefile << 'END-of-proftpd/Makefile'
X# $NetBSD: Makefile,v 1.2 2002/04/02 09:56:26 martti Exp $
X
XDISTNAME= proftpd-1.2.5
XCATEGORIES= net
XMASTER_SITES= ftp://ftp.proftpd.org/distrib/source/
X
XMAINTAINER= martti@netbsd.org
XHOMEPAGE= http://www.proftpd.org/
XCOMMENT= FTP server with Apache like configuration
X
XGNU_CONFIGURE= # defined
XUSE_GMAKE= # defined
X
XCONFIGURE_ARGS+=--sysconfdir=${PREFIX}/etc
XCONFIGURE_ARGS+=--localstatedir=/var/run
XCONFIGURE_ARGS+=--disable-sendfile
X
X#BUILD_DEFS+= PROFTPD_USE_OPIE
X
X#.if defined(PROFTPD_USE_OPIE) && ${PROFTPD_USE_OPIE} == "YES"
X#BUILD_DEPENDS+= opie-lib-2.4:../../security/opie-lib
X.include "../../security/opie-lib/buildlink.mk"
XSITES_mod_opie.c= ftp://pooh.urbanrage.com/pub/c/
XDIST_SUBDIR= proftpd
XPATCHFILES+= mod_opie.c
XMODULES:= ${MODULES}:mod_opie
X#CONFIGURE_ARGS+= --with-modules=${MODULES}
XCONFIGURE_ARGS+= --with-modules=mod_opie
Xpre-patch:
X # pre patch
X ${ECHO_MSG} "===> copying mod_opie"
X ${CP} ${DISTDIR}/${DIST_SUBDIR}/mod_opie.c ${WRKSRC}/contrib
X#.endif
X
X## .if defined(PROFTPD_USE_LDAP) && ${PROFTPD_USE_LDAP} == "YES"
X## MODULES:= ${MODULES}:mod_ldap
X## DEPENDS+= openldap-[0-9]*:../../databases/openldap
X## .endif
X##
X## .if defined(PROFTPD_USE_MYSQL) && ${PROFTPD_USE_MYSQL} == "YES"
X## MODULES:= ${MODULES}:mod_sql:mod_sql_mysql
X## DEPENDS+= mysql-client-[0-9]*:../../databases/mysql-client
X## .endif
X##
X## .if defined(PROFTPD_USE_POSTGRES) && ${PROFTPD_USE_POSTGRES} == "YES"
X## MODULES:= ${MODULES}:mod_sql:mod_sql_postgres
X## DEPENDS+= postgresql-client-[0-9]*:../../databases/postgresql-client
X## .endif
X##
X## .if defined(PROFTPD_USE_QUOTA) && ${PROFTPD_USE_QUOTA} == "YES"
X## MODULES:= ${MODULES}:mod_quota
X## .endif
X##
X## .if defined(PROFTPD_USE_README) && ${PROFTPD_USE_README} == "YES"
X## MODULES:= ${MODULES}:mod_readme
X## .endif
X##
X## .if defined(PROFTPD_USE_WRAP) && ${PROFTPD_USE_WRAP} == "YES"
X## MODULES:= ${MODULES}:mod_wrap
X## .endif
X##
X## .if !empty(MODULES)
X## CONFIGURE_ARGS+=--with-modules=${MODULES}
X## .endif
X
Xpost-install:
X # documentation
X ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/proftpd
X.for i in NEWS README README.LDAP README.PAM README.mod_sql README.modules
X ${INSTALL_DATA} ${WRKSRC}/${i} ${PREFIX}/share/doc/proftpd
X.endfor
X.for i in Configuration.html faq.html license.txt
X ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${PREFIX}/share/doc/proftpd
X.endfor
X # examples
X ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/proftpd
X ${INSTALL_DATA} ${WRKSRC}/sample-configurations/*.conf \
X ${PREFIX}/share/examples/proftpd
X
X.include "../../mk/bsd.pkg.mk"
END-of-proftpd/Makefile
echo x - proftpd/PLIST
sed 's/^X//' >proftpd/PLIST << 'END-of-proftpd/PLIST'
X@comment $NetBSD: PLIST,v 1.1 2001/10/31 22:58:05 zuntum Exp $
Xbin/ftpcount
Xbin/ftpwho
Xman/man1/ftpcount.1
Xman/man1/ftpwho.1
Xman/man5/xferlog.5
Xman/man8/ftpshut.8
Xman/man8/proftpd.8
Xsbin/ftpshut
Xsbin/in.proftpd
Xsbin/proftpd
Xshare/doc/proftpd/Configuration.html
Xshare/doc/proftpd/NEWS
Xshare/doc/proftpd/README
Xshare/doc/proftpd/README.LDAP
Xshare/doc/proftpd/README.PAM
Xshare/doc/proftpd/README.mod_sql
Xshare/doc/proftpd/README.modules
Xshare/doc/proftpd/faq.html
Xshare/doc/proftpd/license.txt
Xshare/examples/proftpd/anonymous.conf
Xshare/examples/proftpd/basic.conf
Xshare/examples/proftpd/complex-virtual.conf
Xshare/examples/proftpd/mod_sql.conf
Xshare/examples/proftpd/virtual.conf
X@dirrm share/doc/proftpd
X@dirrm share/examples/proftpd
END-of-proftpd/PLIST
echo x - proftpd/distinfo
sed 's/^X//' >proftpd/distinfo << 'END-of-proftpd/distinfo'
X$NetBSD: distinfo,v 1.1.1.1 2001/10/22 14:26:45 martti Exp $
X
XSHA1 (proftpd/proftpd-1.2.5.tar.gz) = a685541fcb285ee029442dd3bf40a23d5d0be292
XSize (proftpd/proftpd-1.2.5.tar.gz) = 688025 bytes
XSHA1 (proftpd/mod_opie.c) = 668cae2b8706a2655872b376058b876f07d66923
XSize (proftpd/mod_opie.c) = 4437 bytes
XSHA1 (patch-aa) = 549946501a488ea88c2bf3063460bae94e981f70
XSHA1 (patch-ab) = 03db5166d89ed2cc89b70486719ce5d855c48469
XSHA1 (patch-ac) = ee9b6e545c5e79c518893c17d039bec9414fac0b
XSHA1 (patch-ad) = e0fb11900d5ab7743488974da3575b2aab4a5c04
END-of-proftpd/distinfo
echo c - proftpd/patches
mkdir -p proftpd/patches > /dev/null 2>&1
echo x - proftpd/patches/patch-aa
sed 's/^X//' >proftpd/patches/patch-aa << 'END-of-proftpd/patches/patch-aa'
X$NetBSD: patch-aa,v 1.1.1.1 2001/10/22 14:26:45 martti Exp $
X
X+++ Makefile.in Thu Jun 6 12:14:30 2002
X@@ -114,7 +114,7 @@
X $(INSTALL_MAN) $(top_srcdir)/src/ftpcount.1 $(mandir)/man1
X $(INSTALL_MAN) $(top_srcdir)/src/xferlog.5 $(mandir)/man5
X
X+install-all: install-proftpd install-utils install-man
X
X install: install-all
X
END-of-proftpd/patches/patch-aa
echo x - proftpd/patches/patch-ab
sed 's/^X//' >proftpd/patches/patch-ab << 'END-of-proftpd/patches/patch-ab'
X+++ Make.rules.in Sun Aug 25 23:53:21 2002
X@@ -34,7 +34,7 @@
X
X # Directory include paths.
X #
X-INCLUDES=-I.. -I$(top_srcdir)/include @INCLUDES@
X+INCLUDES=-I.. -I$(top_srcdir)/include -I/usr/pkg/include/opie @INCLUDES@
X
X # Preprocessor compilation flags.
X #
END-of-proftpd/patches/patch-ab
echo x - proftpd/patches/patch-ac
sed 's/^X//' >proftpd/patches/patch-ac << 'END-of-proftpd/patches/patch-ac'
X+++ contrib/mod_opie.c Sun Aug 25 23:47:32 2002
X@@ -21,7 +21,7 @@
X automatically pulled in by configure so you need to modify it to have
X the correct location of you library
X
X+ $Libraries: -L/usr/pkg/lib/opie -lopie -I/usr/pkg/include/opie$
X
X */
X
X@@ -40,7 +40,7 @@
X
X #include "conf.h"
X #include "privs.h"
X-
X+#define _OPIE_CFG_H
X #include "opie_cfg.h"
X #include "opie.h"
X
END-of-proftpd/patches/patch-ac
echo x - proftpd/patches/patch-ad
sed 's/^X//' >proftpd/patches/patch-ad << 'END-of-proftpd/patches/patch-ad'
X+++ modules/Makefile.in Sun Aug 25 23:21:37 2002
X@@ -144,3 +144,10 @@
X mod_xfer.o: ../include/timers.h ../include/inet.h ../include/ident.h
X mod_xfer.o: ../include/ftp.h ../include/log.h ../include/data.h
X mod_xfer.o: ../include/libsupp.h ../include/fs.h
X+mod_opie.o: ../include/conf.h ../include/version.h ../config.h
X+mod_opie.o: ../include/default_paths.h ../include/options.h ../include/pool.h
X+mod_opie.o: ../include/proftpd.h ../include/support.h ../include/sets.h
X+mod_opie.o: ../include/dirtree.h ../include/io.h ../include/modules.h
X+mod_opie.o: ../include/timers.h ../include/inet.h ../include/ident.h
X+mod_opie.o: ../include/ftp.h ../include/log.h ../include/data.h
X+mod_opie.o: ../include/libsupp.h ../include/fs.h
END-of-proftpd/patches/patch-ad
echo c - proftpd/files
mkdir -p proftpd/files > /dev/null 2>&1
echo x - proftpd/files/mod_opie.c.diff
sed 's/^X//' >proftpd/files/mod_opie.c.diff << 'END-of-proftpd/files/mod_opie.c.diff'
X+++ mod_opie.c Mon Jul 29 21:21:59 2002
X@@ -21,7 +21,7 @@
X automatically pulled in by configure so you need to modify it to have
X the correct location of you library
X
X+ $Libraries: -L/usr/pkg/lib/opie -lopie
X
X */
X
X@@ -41,8 +41,9 @@
X #include "conf.h"
X #include "privs.h"
X
X-#include "opie_cfg.h"
X-#include "opie.h"
X+#define _OPIE_CFG_H
X+#include <opie/opie_cfg.h>
X+#include <opie/opie.h>
X
X #include <sys/types.h>
X #include <sys/stat.h>
END-of-proftpd/files/mod_opie.c.diff
exit
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# opie-lib
# opie-lib/DESCR
# opie-lib/Makefile
# opie-lib/PLIST
# opie-lib/buildlink.mk
# opie-lib/distinfo
# opie-lib/patches
# opie-lib/patches/patch-aa
# opie-lib/patches/patch-ab
#
echo c - opie-lib
mkdir -p opie-lib > /dev/null 2>&1
echo x - opie-lib/DESCR
sed 's/^X//' >opie-lib/DESCR << 'END-of-opie-lib/DESCR'
XOPIE(One-Time Passwords In Everything) is an implementation of the One-Time Password (OTP) standard specified in RFC 1938.
Xsupport proftpd and some others.
END-of-opie-lib/DESCR
echo x - opie-lib/Makefile
sed 's/^X//' >opie-lib/Makefile << 'END-of-opie-lib/Makefile'
X# $NetBSD: Makefile,v 1.14 2002/04/13 02:39:53 jlam Exp $
X#
X
XDISTNAME= opie-2.4
XPKGNAME= opie-lib-2.4
XCATEGORIES= secrity
XMASTER_SITES= http://www.inner.net/pub/opie/
X
X
XMAINTAINER= tech-pkg@netbsd.org
XHOMEPAGE= http://www.inner.net/pub/opie/
XCOMMENT= One-Time Passwords In Everything (OPIE) software (library)
X
XGNU_CONFIGURE= # defined
XUSE_GMAKE= # defined
X
XINSTALL_INCLUDES= acconfig.h opie.h opie_cfg.h libmissing/missing.h config.h
XINSTALL_LIBS= accessfile.o getutmpentry.o lookup.o randomchallenge.o atob8.o hash.o md4c.o readpass.o btoa8.o hashlen.o md5c.o readrec.o btoe.o insecure.o newseed.o unlock.o btoh.o keycrunch.o open.o verify.o challenge.o lock.o parsechallenge.o version.o generator.o login.o passcheck.o writerec.o getsequence.o logwtmp.o passwd.o libopie.a
X
Xpost-install:
X @${INSTALL_DATA_DIR} ${PREFIX}/lib/opie
X.for f in ${INSTALL_LIBS}
X @${INSTALL_DATA} ${WRKSRC}/libopie/${f} ${PREFIX}/lib/opie
X.endfor
X @${INSTALL_DATA_DIR} ${PREFIX}/include/opie
X.for f in ${INSTALL_INCLUDES}
X @${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/include/opie
X.endfor
X
X
X.include "../../mk/bsd.pkg.mk"
END-of-opie-lib/Makefile
echo x - opie-lib/PLIST
sed 's/^X//' >opie-lib/PLIST << 'END-of-opie-lib/PLIST'
X@comment $NetBSD$
Xbin/opieftpd
Xbin/opieinfo
Xbin/opiekey
Xbin/opielogin
Xbin/opiepasswd
Xbin/opiesu
Xetc/opiekeys
Xinclude/opie/acconfig.h
Xinclude/opie/config.h
Xinclude/opie/missing.h
Xinclude/opie/opie.h
Xinclude/opie/opie_cfg.h
Xlib/opie/accessfile.o
Xlib/opie/atob8.o
Xlib/opie/btoa8.o
Xlib/opie/btoe.o
Xlib/opie/btoh.o
Xlib/opie/challenge.o
Xlib/opie/generator.o
Xlib/opie/getsequence.o
Xlib/opie/getutmpentry.o
Xlib/opie/hash.o
Xlib/opie/hashlen.o
Xlib/opie/insecure.o
Xlib/opie/keycrunch.o
Xlib/opie/libopie.a
Xlib/opie/lock.o
Xlib/opie/login.o
Xlib/opie/logwtmp.o
Xlib/opie/lookup.o
Xlib/opie/md4c.o
Xlib/opie/md5c.o
Xlib/opie/newseed.o
Xlib/opie/open.o
Xlib/opie/parsechallenge.o
Xlib/opie/passcheck.o
Xlib/opie/passwd.o
Xlib/opie/randomchallenge.o
Xlib/opie/readpass.o
Xlib/opie/readrec.o
Xlib/opie/unlock.o
Xlib/opie/verify.o
Xlib/opie/version.o
Xlib/opie/writerec.o
Xman/man1/opiegen.1
Xman/man1/opieinfo.1
Xman/man1/opiekey.1
Xman/man1/opielogin.1
Xman/man1/opiepasswd.1
Xman/man1/opieserv.1
Xman/man1/opiesu.1
Xman/man4/opie.4
Xman/man5/opieaccess.5
Xman/man5/opiekeys.5
Xman/man8/opieftpd.8
X@dirrm lib/opie
X@dirrm include/opie
END-of-opie-lib/PLIST
echo x - opie-lib/buildlink.mk
sed 's/^X//' >opie-lib/buildlink.mk << 'END-of-opie-lib/buildlink.mk'
X# $NetBSD$
X#
X# This Makefile fragment is included by packages that use opie-lib.
X#
X# To use this Makefile fragment, simply:
X#
X# (1) Optionally define BUILDLINK_DEPENDS.canna to the dependency pattern
X# for the version of opie-lib desired.
X# (2) Include this Makefile fragment in the package Makefile,
X# (3) Add ${BUILDLINK_DIR}/include to the front of the C preprocessor's header
X# search path, and
X# (4) Add ${BUILDLINK_DIR}/lib to the front of the linker's library search
X# path.
X
X.if !defined(OPIE_LIB_BUILDLINK_MK)
XOPIE_BUILDLINK_MK= # defined
X
X.include "../../mk/bsd.buildlink.mk"
X
XBUILDLINK_DEPENDS.opie-lib?= opie-lib>=2.4
XDEPENDS+= ${BUILDLINK_DEPENDS.opie-lib}:../../security/opie-lib
X
XEVAL_PREFIX+= BUILDLINK_PREFIX.opie-lib=opie-lib
XBUILDLINK_PREFIX.opie-lib_DEFAULT= ${LOCALBASE}
XBUILDLINK_FILES.opie-lib= bin/opie*
XBUILDLINK_FILES.opie-lib+= include/opie/*
XBUILDLINK_FILES.opie-lib+= lib/opie/*
X
XBUILDLINK_TARGETS.opie-lib= opie-lib-buildlink
XBUILDLINK_TARGETS+= ${BUILDLINK_TARGETS.opie}
X
Xpre-configure: ${BUILDLINK_TARGETS.opie-lib}
Xopie-lib-buildlink: _BUILDLINK_USE
X
X.endif # OPIE_LIB_BUILDLINK_MK
END-of-opie-lib/buildlink.mk
echo x - opie-lib/distinfo
sed 's/^X//' >opie-lib/distinfo << 'END-of-opie-lib/distinfo'
X$NetBSD: distinfo,v 1.5 2002/04/13 03:02:26 jwise Exp $
X
XSHA1 (opie-2.4.tar.gz) = a3b98957aec7467429f18b25480c69d49152a42a
XSize (opie-2.4.tar.gz) = 167557 bytes
XSHA1 (patch-aa) = e68116fc53bdce3f506b62db713a9e9f75c55a3d
XSHA1 (patch-ab) = 30bc7cc34cd1bacd612b5e4e4b71df9a4799cfce
END-of-opie-lib/distinfo
echo c - opie-lib/patches
mkdir -p opie-lib/patches > /dev/null 2>&1
echo x - opie-lib/patches/patch-aa
sed 's/^X//' >opie-lib/patches/patch-aa << 'END-of-opie-lib/patches/patch-aa'
X+++ configure Tue Jul 23 21:16:21 2002
X@@ -9,7 +9,7 @@
X
X # Defaults:
X ac_help=
X-ac_default_prefix=/usr/local
X+ac_default_prefix=/usr/pkg
X # Any additions from configure.in:
X ac_help="$ac_help
X --enable-access-file=FILENAME
X@@ -1185,7 +1185,7 @@
X fi
X done
X IFS="$ac_save_ifs"
X- test -z "$ac_cv_path_CHOWN" && ac_cv_path_CHOWN="/bin/chown"
X+ test -z "$ac_cv_path_CHOWN" && ac_cv_path_CHOWN="/usr/sbin/chown"
X ;;
X esac
X fi
END-of-opie-lib/patches/patch-aa
echo x - opie-lib/patches/patch-ab
sed 's/^X//' >opie-lib/patches/patch-ab << 'END-of-opie-lib/patches/patch-ab'
X+++ Makefile.in Tue Jul 23 21:27:04 2002
X@@ -87,7 +87,7 @@
X #
X # Some sites might want to put this elsewhere. If you want to use an old
X # S/Key database, you should create a link from /etc/skeykeys to /etc/opiekeys.
X-KEY_FILE=/etc/opiekeys
X+KEY_FILE=/usr/pkg/etc/opiekeys
X
X # Are we debugging?
X #
X@@ -166,75 +166,16 @@
X @chmod 0555 $(LOCALBIN)/opieinfo
X @chmod 4511 $(LOCALBIN)/opiepasswd
X @echo "Installing OPIE system programs..."
X- @if test ! -z $(LOGIN); \
X- then \
X- if test ! $(EXISTS) $(LOGIN).$(BACKUP); \
X- then \
X- echo "Renaming existing $(LOGIN) to $(LOGIN).$(BACKUP)"; \
X- mv $(LOGIN) $(LOGIN).$(BACKUP); \
X- echo "Clearing permissions on $(LOGIN)"; \
X- chmod 0 $(LOGIN).$(BACKUP); \
X- fi; \
X- echo "Copying OPIE login to $(LOGIN)"; \
X- cp opielogin $(LOGIN); \
X- echo "Changing ownership of $(LOGIN)"; \
X- $(CHOWN) $(OWNER) $(LOGIN); \
X- chgrp $(GROUP) $(LOGIN); \
X- echo "Changing file permissions of $(LOGIN)"; \
X- chmod 4111 $(LOGIN); \
X- fi
X- @if test ! -z $(SU); \
X- then \
X- if test ! $(EXISTS) $(SU).$(BACKUP); \
X- then \
X- echo "Renaming existing $(SU) to $(SU).$(BACKUP)"; \
X- mv $(SU) $(SU).$(BACKUP); \
X- echo "Clearing permissions on $(SU)"; \
X- chmod 0 $(SU).$(BACKUP); \
X- fi; \
X- echo "Copying OPIE su to $(SU)"; \
X- cp opiesu $(SU); \
X- echo "Changing ownership of $(SU)"; \
X- $(CHOWN) $(OWNER) $(SU); \
X- chgrp $(GROUP) $(SU); \
X- echo "Changing file permissions of $(SU)"; \
X- chmod 4111 $(SU); \
X- fi
X- @if test ! -z $(ALT_SU); \
X- then \
X- if test ! $(EXISTS) $(ALT_SU).$(BACKUP); \
X- then \
X- echo "Renaming existing $(ALT_SU) to $(ALT_SU).$(BACKUP)"; \
X- mv $(ALT_SU) $(ALT_SU).$(BACKUP); \
X- echo "Clearing permissions on $(ALT_SU)"; \
X- chmod 0 $(ALT_SU).$(BACKUP); \
X- fi; \
X- echo "Copying OPIE su to $(ALT_SU)"; \
X- cp opiesu $(ALT_SU); \
X- echo "Changing ownership of $(ALT_SU)"; \
X- $(CHOWN) $(OWNER) $(ALT_SU); \
X- chgrp $(GROUP) $(ALT_SU); \
X- echo "Changing file permissions of $(ALT_SU)"; \
X- chmod 4111 $(ALT_SU); \
X- fi
X- @if test ! -z $(FTPD); \
X- then \
X- if test ! $(EXISTS) $(FTPD).$(BACKUP); \
X- then \
X- echo "Renaming existing $(FTPD) to $(FTPD).$(BACKUP)"; \
X- mv $(FTPD) $(FTPD).$(BACKUP); \
X- echo "Clearing permissions on $(FTPD).$(BACKUP)"; \
X- chmod 0 $(FTPD).$(BACKUP); \
X- fi; \
X- echo "Copying OPIE ftp daemon to $(FTPD)"; \
X- cp opieftpd $(FTPD); \
X- echo "Changing ownership of $(FTPD)"; \
X- $(CHOWN) $(OWNER) $(FTPD); \
X- chgrp $(GROUP) $(FTPD); \
X- echo "Changing file permissions of $(FTPD)"; \
X- chmod 0100 $(FTPD); \
X- fi
X- @echo "Making sure OPIE database file exists";
X+
X+ @echo "Copying OPIE login, su, ftp daemon to $(LOCALBIN)"
X+ @cp opielogin opiesu opieftpd $(LOCALBIN)
X+ @echo "Changing ownership of $(LOCALBIN)/opielogin, $(LOCALBIN)/opiesu $(LOCALBIN)/opieftpd"
X+ @$(CHOWN) $(OWNER) $(LOCALBIN)/opielogin $(LOCALBIN)/opiesu $(LOCALBIN)/opieftpd
X+ @chgrp $(GROUP) $(LOCALBIN)/opielogin $(LOCALBIN)/opiesu $(LOCALBIN)/opieftpd
X+ @echo "Changing file permissions of $(LOCALBIN)/opielogin, $(LOCALBIN)/opiesu $(LOCALBIN)/opieftpd"
X+ @chmod 4111 $(LOCALBIN)/opielogin $(LOCALBIN)/opiesu
X+ @chmod 0100 $(LOCALBIN)/opieftpd
X+
X @touch $(KEY_FILE)
X @echo "Changing permissions of OPIE database file"
X @chmod 0644 $(KEY_FILE)
END-of-opie-lib/patches/patch-ab
exit