From owner-freebsd-ports Sat Apr 15 18:15:25 2000 Delivered-To: freebsd-ports@freebsd.org Received: from mail.westbend.net (ns1.westbend.net [209.224.254.131]) by hub.freebsd.org (Postfix) with ESMTP id 5269D37B55B for ; Sat, 15 Apr 2000 18:15:19 -0700 (PDT) (envelope-from hetzels@westbend.net) Received: from admin (admin.westbend.net [209.224.254.141]) by mail.westbend.net (8.9.3/8.9.3) with SMTP id UAA27789 for ; Sat, 15 Apr 2000 20:15:15 -0500 (CDT) (envelope-from hetzels@westbend.net) Message-ID: <016b01bfa741$38ee08e0$8dfee0d1@westbend.net> From: "Scot W. Hetzel" To: "FreeBSD-Ports" Subject: Apache13: crypt, descrypt libraries Date: Sat, 15 Apr 2000 20:15:15 -0500 Organization: West Bend Internet MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.3825.400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.3825.400 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm working on the new apache13 ports, but I am having a problem with the crypt/descrypt library dependency. What I need for the port to do is to make it so that it can be built with either library depending on the admins requirements. I fixed the Apache13 configure script to allow a user to choose to build the apache server with the descrypt library, and patched src/Configure so that -l@CRYPT@ could be replaced with either crypt or descrypt. Before I compiled the port I switched the crypt links to scrypt. But after the port compiles, ldd still shows apache, htpasswd, suexec as being linked with libcrypt.so.2 instead of being linked with libdescrypt.so.2. And when htpasswd is run, it creates md5 passwords instead of DES passwords. Changing the crypt links back to descrypt, and now htpasswd creates DES passwords. I changed src/Makefile & src/support/Makefile, to use /usr/lib/libdescrypt.a instead of -ldescrypt, and recompiled. htpasswd now creates both DES and MD5 passwords ( use -m for MD5) (NOTE: I switched the crypt links to scrypt before the compile). Is the only way to compile apache with the descrypt library is to compile it in statically? Or is there another way to compile the descrypt library into the apache sources? The current Apache13 module ports with the crypt/descrypt change is at: http://www.westbend.net/~hetzels/mod_apache13.tgz NOTE: These ports still use -ldescrypt, and haven't been updated to the new PKGNAME/PKGVERSION requirements. The reason for this change to the behavior of the Apache13 port is due to the requirement for mod_frontpage needing the Apache server to use DES passwords (MS/RTR compiled fpsrvadm.exe with the descrypt library). I have also received past request to make the Apache13-FP port compile with the descrypt library as they didn't want to have to change their crypt links to descrypt. Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message