aboutsummaryrefslogtreecommitdiffstats
path: root/news/nn/pkg-install
blob: 3464fa390e52a704fd0162992a70a0c68a289d9f (plain) (blame)
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/sh

if [ "x$2" != "xPOST-INSTALL" ]; then
    exit
fi

cat << xxENDxx

*******************************************************************
You have just installed the $1 package

Please set your NNTP server address or hostname in the file:

xxENDxx

echo "${PKG_PREFIX}/etc/nntp_server"
echo ""

cat << xxENDxx
If desired, please set your domain name for From: addresses when
posting in the file (default is to use your hostname):

xxENDxx

echo "${PKG_PREFIX}/etc/nntp_domain"
echo ""

cat << xxENDxx
*******************************************************************
xxENDxx

cat << xxENDxx > ${PKG_PREFIX}/etc/nntp_server.dist
# nntp_server: Configuration file for NN newsreader
# 
# Set your NNTP server address or hostname in this file.
#
# If this file is left blank, NN will use the server set in the
# NNTP_SERVER environment variable.
#
# news.myisp.com
xxENDxx

if [ ! -e ${PKG_PREFIX}/etc/nntp_server ]; then
    cp ${PKG_PREFIX}/etc/nntp_server.dist ${PKG_PREFIX}/etc/nntp_server
fi

cat << xxENDxx > ${PKG_PREFIX}/etc/nntp_domain.dist
# nntp_domain: Configuration file for NN newsreader
# 
# Set the default domain name portion of user e-mail addresses as you
# would like them to appear in the From: line of articles posted
# with NN.
#
# For example, setting the name to foobar.com in this file will cause
# the From: line for joeuser to look like something like this:
#
# From: joeuser@foobar.com (Joe User)
#
# If this file is left blank, NN will use the hostname of this
# computer as the From: domain name.
xxENDxx

if [ ! -e ${PKG_PREFIX}/etc/nntp_domain ]; then
    cp ${PKG_PREFIX}/etc/nntp_domain.dist ${PKG_PREFIX}/etc/nntp_domain
fi