この前のサイトのお陰で必要なパッチの入手が出来たので早速インストールまでやってみます。
まずは、必要なディレクトリとグループ・ユーザーの作成。
# mkdir /var/qmail
# pw groupadd nofiles -g 81
# pw useradd alias -g nofiles -d /var/qmail/alias -s /nonexistent -u 81
# pw useradd qmaild -g nofiles -d /var/qmail -s /nonexistent -u 82
# pw useradd qmaill -g nofiles -d /var/qmail -s /nonexistent -u 83
# pw useradd qmailp -g nofiles -d /var/qmail -s /nonexistent -u 84
# pw groupadd qmail -g 82
# pw useradd qmailq -g qmail -d /var/qmail -s /nonexistent -u 85
# pw useradd qmailr -g qmail -d /var/qmail -s /nonexistent -u 86
# pw useradd qmails -g qmail -d /var/qmail -s /nonexistent -u 87
tarボールは予め/usr/local/srcにコピーしましたので移動して解凍・パッチ適用・インストール
# cd /usr/local/src
# tar zxf qmail-1.03.tar.gz
# cp qmail-date-localtime.patch.txt qmail-1.03/qmail-date-localtime.patch
# cd qmail-1.03
patch -p1 < qmail-date-localtime.patch
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|This patch causes the various qmail programs to generate date stamps in
|the local timezone. I find GMT too annoying to convert from/to. I make
|no warranties that it will work in your timezone, however it works for me.
|
|Works with qmail 1.01 to 1.03.
|
|To apply this patch, cd into the qmail source directory and type...
| patch -s -p1 < patch-to-patch-file
|
|--- qmail-1.03.orig/date822fmt.c Tue Apr 15 15:05:23 1997
|+++ qmail-1.03/date822fmt.c Fri Apr 18 00:39:41 1997
--------------------------
Patching file date822fmt.c using Plan A...
Hunk #1 succeeded at 1.
Hunk #2 succeeded at 13.
done
qmail等のDJBではmake→make installと同等の機能を下記コマンドで行います。
# make setup check
インストールされた内容を確認
# ls -l /var/qmail
total 16
drwxr-sr-x 2 alias qmail 512 Apr 10 02:52 alias
drwxr-xr-x 2 root qmail 1024 Apr 10 02:52 bin
drwxr-xr-x 2 root qmail 512 Apr 10 02:52 boot
drwxr-xr-x 2 root qmail 512 Apr 10 02:52 control
drwxr-xr-x 2 root qmail 1024 Apr 10 02:52 doc
drwxr-xr-x 10 root qmail 512 Apr 10 02:52 man
drwxr-x--- 11 qmailq qmail 512 Apr 10 02:52 queue
drwxr-xr-x 2 root qmail 512 Apr 10 02:52 users

コメントする