1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-05 22:43:24 +00:00
freebsd-ports/security/bjorb/files/patch-aa
Steve Price 3845fbcfd5 Update to version 0.5.4p4.
PR:		7739
Submitted by:	maintainer
1998-08-30 15:35:08 +00:00

29 lines
781 B
Plaintext

--- Makefile.in.orig Fri Jul 24 10:53:37 1998
+++ Makefile.in Tue Aug 25 14:17:09 1998
@@ -29,7 +29,7 @@
LDFLAGS =
LIBS = @LIBS@
-PREFIX = @prefix@
+PREFIX ?= @prefix@
exec_prefix = $(PREFIX)
sbindir = $(exec_prefix)/sbin
etcdir = $(exec_prefix)/etc
@@ -135,9 +135,13 @@
autoconf
certificate::
- $(SSLTOP)/bin/req -new -x509 -out new.pem -nodes -days 365
- cat new.pem privkey.pem > $(etcdir)/bjorb.pem
- @rm new.pem privkey.pem
+ (\
+ [ -f $(PREFIX)/certs/bjorb.pem ] && exit 0; \
+ cd $(PREFIX)/certs; \
+ ssleay req -new -x509 -nodes -days 365 -out bjorb.pem -keyout bjorb.pem; \
+ ln -s bjorb.pem `ssleay x509 -noout -hash < bjorb.pem`.0 ;\
+ chmod 644 $(PREFIX)/certs/bjorb.pem; \
+ )
install-bsd::
@if test -f /etc/rc.bjorb ; then chmod +w /etc/rc.bjorb; fi