PAM

Merge lp:~kirkland/pam/sbin-update-motd into lp:ubuntu/raring/pam

Proposed by Dustin Kirkland 
Status: Needs review
Proposed branch: lp:~kirkland/pam/sbin-update-motd
Merge into: lp:ubuntu/raring/pam
Diff against target: 121 lines (+77/-0)
6 files modified
debian/changelog (+12/-0)
debian/copyright (+1/-0)
debian/libpam-modules.manpages (+1/-0)
debian/libpam-runtime.install (+1/-0)
debian/update-motd (+33/-0)
debian/update-motd.8 (+29/-0)
To merge this branch: bzr merge lp:~kirkland/pam/sbin-update-motd
Reviewer Review Type Date Requested Status
Steve Langasek Pending
Review via email: mp+148559@code.launchpad.net
To post a comment you must log in.
lp:~kirkland/pam/sbin-update-motd updated
92. By Dustin Kirkland 

install into /usr/sbin and manpages

Unmerged revisions

92. By Dustin Kirkland 

install into /usr/sbin and manpages

91. By Dustin Kirkland 

* debian/copyright, debian/libpam-runtime.install, debian/update-motd,
  debian/update-motd.8:
  - add a wrapper script, such that an administrator can force a MOTD
    update on demand
  - this also helps an administrator track down failing scripts in
    /etc/update-motd.d as described in several bugs

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'debian/changelog'
--- debian/changelog 2013-01-03 18:06:33 +0000
+++ debian/changelog 2013-02-14 21:05:24 +0000
@@ -1,3 +1,15 @@
1pam (1.1.3-7ubuntu5) UNRELEASED; urgency=low
2
3 * debian/copyright, debian/libpam-runtime.install, debian/update-motd,
4 debian/update-motd.8:
5 - add a wrapper script, such that an administrator can force a MOTD
6 update on demand
7 - this also helps an administrator track down failing scripts in
8 /etc/update-motd.d as described in several bugs
9 - install into /usr/sbin and manpages
10
11 -- Dustin Kirkland <kirkland@ubuntu.com> Thu, 14 Feb 2013 14:52:52 -0600
12
1pam (1.1.3-7ubuntu4) raring; urgency=low13pam (1.1.3-7ubuntu4) raring; urgency=low
214
3 * Add missing #include to fix compilation with glibc 2.16 (Daniel15 * Add missing #include to fix compilation with glibc 2.16 (Daniel
416
=== modified file 'debian/copyright'
--- debian/copyright 2010-08-16 19:12:35 +0000
+++ debian/copyright 2013-02-14 21:05:24 +0000
@@ -20,6 +20,7 @@
20Copyright (C) 2003 Nalin Dahyabhai <nalin@redhat.com>20Copyright (C) 2003 Nalin Dahyabhai <nalin@redhat.com>
21Copyright (C) 2005-2008 Thorsten Kukuk <kukuk@thkukuk.de>21Copyright (C) 2005-2008 Thorsten Kukuk <kukuk@thkukuk.de>
22Copyright (C) 2005 Darren Tucker22Copyright (C) 2005 Darren Tucker
23Copyright (C) 2013 Dustin Kirkland <dustin.kirkland@gmail.com>
2324
2425
25Unless otherwise *explicitly* stated the following text describes the26Unless otherwise *explicitly* stated the following text describes the
2627
=== modified file 'debian/libpam-modules.manpages'
--- debian/libpam-modules.manpages 2011-08-18 16:41:18 +0000
+++ debian/libpam-modules.manpages 2013-02-14 21:05:24 +0000
@@ -1,3 +1,4 @@
1debian/tmp/usr/share/man/man8/pam_*.81debian/tmp/usr/share/man/man8/pam_*.8
2debian/tmp/usr/share/man/man5/*conf.52debian/tmp/usr/share/man/man5/*conf.5
3debian/update-motd.53debian/update-motd.5
4debian/update-motd.8
45
=== modified file 'debian/libpam-runtime.install'
--- debian/libpam-runtime.install 2010-08-16 19:12:35 +0000
+++ debian/libpam-runtime.install 2013-02-14 21:05:24 +0000
@@ -5,3 +5,4 @@
5debian/tmp/usr/share/locale usr/share5debian/tmp/usr/share/locale usr/share
6debian/local/pam-auth-update usr/sbin6debian/local/pam-auth-update usr/sbin
7debian/pam-configs/unix usr/share/pam-configs/7debian/pam-configs/unix usr/share/pam-configs/
8debian/update-motd usr/sbin
89
=== added file 'debian/update-motd'
--- debian/update-motd 1970-01-01 00:00:00 +0000
+++ debian/update-motd 2013-02-14 21:05:24 +0000
@@ -0,0 +1,33 @@
1#!/bin/sh
2#
3# update-motd - update the dynamic MOTD immediately
4#
5# Copyright (C) 2008-2013 Dustin Kirkland <dustin.kirkland@gmail.com>
6#
7# Authors: Dustin Kirkland <dustin.kirkland@gmail.com>
8#
9# This program is free software: you can redistribute it and/or modify
10# it under the terms of the GNU General Public License as published by
11# the Free Software Foundation, version 3 of the License.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20
21set -e
22
23if /usr/bin/env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin run-parts --lsbsysinit /etc/update-motd.d > /var/run/motd.new; then
24 if mv -f /var/run/motd.new /var/run/motd; then
25 exit 0
26 else
27 echo "ERROR: could not install new MOTD" 1>&2
28 exit 1
29 fi
30else
31 echo "ERROR: could not generate new MOTD" 1>&2
32 exit 2
33fi
034
=== added file 'debian/update-motd.8'
--- debian/update-motd.8 1970-01-01 00:00:00 +0000
+++ debian/update-motd.8 2013-02-14 21:05:24 +0000
@@ -0,0 +1,29 @@
1.TH update-motd 8 "14 February 2013" "update-motd"
2
3.SH NAME
4update-motd \- immediately update the dynamic MOTD
5
6.SH SYNOPSIS
7.B update-motd
8
9.SH DESCRIPTION
10The PAM MOTD module updates the Message-of-the-Day automatically on user logins.
11
12But sometimes, the system administrator may want to update the MOTD immediately or on demand.
13
14This simple program performs the same actions handled by PAM on login.
15
16Note that only the system administrator can typically write to the MOTD, and thus this utility should be executed as the root user.
17
18For best practices and additional information, please see \fBupdate-motd\fP(5).
19
20.SH FILES
21\fI/etc/motd\fP, \fI/var/run/motd\fP, \fI/etc/update-motd.d\fP
22
23.SH SEE ALSO
24\fBmotd\fP(5), \fBpam_motd\fP(8), \fBrun-parts\fP(8), \fBupdate-motd\fP(5)
25
26.SH AUTHOR
27This manpage and the update-motd framework was written by Dustin Kirkland <dustin.kirkland@gmail.com> for Ubuntu systems (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 3 published by the Free Software Foundation.
28
29On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.

Subscribers

People subscribed via source and target branches