aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Rousse <guillomovitch@mandriva.org>2007-09-05 19:39:14 +0000
committerGuillaume Rousse <guillomovitch@mandriva.org>2007-09-05 19:39:14 +0000
commit007acdc686563ce66c972603cb2fd487bc8ab04a (patch)
tree6e7c65124ec9e749025abe4990a314e09dfabb8c
parentb6c3e2718fca6727ed8efcf5f5d9826278fae3dc (diff)
downloadrpm-helper-007acdc686563ce66c972603cb2fd487bc8ab04a.tar
rpm-helper-007acdc686563ce66c972603cb2fd487bc8ab04a.tar.gz
rpm-helper-007acdc686563ce66c972603cb2fd487bc8ab04a.tar.bz2
rpm-helper-007acdc686563ce66c972603cb2fd487bc8ab04a.tar.xz
rpm-helper-007acdc686563ce66c972603cb2fd487bc8ab04a.zip
default configuration file for create-ssl-certificate
-rw-r--r--Makefile6
-rw-r--r--ssl12
2 files changed, 17 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index c635a51..08e3904 100644
--- a/Makefile
+++ b/Makefile
@@ -7,11 +7,13 @@ SCRIPT_FILES = add-user del-user add-service del-service create-file \
add-syslog del-syslog add-webapp del-webapp \
get-free-syslog-facility get-password create-ssl-certificate
MACROS_FILES = rpm-helper.macros
+CONF_FILES = ssl
FILES = AUTHORS README COPYING NEWS Makefile \
- $(SCRIPT_FILES) $(MACROS_FILES:=.in)
+ $(SCRIPT_FILES) $(MACROS_FILES:=.in) $(CONF_FILES)
pkgdatadir = /usr/share/$(PACKAGE)
rpmmacrosdir = /etc/rpm/macros.d
+sysconfigdir = /etc/sysconfig
all:
@echo "use make install or make dist"
@@ -21,6 +23,8 @@ install: $(MACROS_FILES)
cp -p $(SCRIPT_FILES) $(DESTDIR)$(pkgdatadir)
install -d -m 755 $(DESTDIR)$(rpmmacrosdir)
install -m 644 $(MACROS_FILES) $(DESTDIR)/$(rpmmacrosdir)
+ install -d -m 755 $(DESTDIR)$(sysconfigdir)
+ install -m 644 $(CONF_FILES) $(DESTDIR)/$(sysconfigdir)
rpm-helper.macros: rpm-helper.macros.in
sed -e 's:@pkgdatadir@:$(pkgdatadir):' < $< > $@
diff --git a/ssl b/ssl
new file mode 100644
index 0000000..9e03c04
--- /dev/null
+++ b/ssl
@@ -0,0 +1,12 @@
+# configuration file for create-ssl-certificate rpm scriptlet
+
+# key length
+KEY_LENGTH=1024
+
+# certificate duration
+CERT_DAYS=365
+
+# certificate values
+EMAIL_ADDRESS=root@$host
+COMMON_NAME=$host
+ORGANISATIONAL_UNIT_NAME="default $srv cert for $host"