History log of /freebsd-current/usr.bin/calendar/Makefile
Revision Date Author Comments
# bdcbfde3 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.bin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# d0b2dbfa 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line sh pattern

Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/


# d20d6550 25-Oct-2020 Warner Losh <imp@FreeBSD.org>

calendar: remove all datafiles except freebsd one

Move all the data files for the calendar(1) program, except
calendar.freebsd to the calendar-data package. When a file
can't be found, and /usr/local/share/calendar doesn't exist
provide a helpful hint to install this package.

Reviewed by: se@
Differential Revision: https://reviews.freebsd.org/D26926


# fd1efedc 02-Mar-2020 Conrad Meyer <cem@FreeBSD.org>

Add extremely useful calendar(1) application to FreeBSD

It does extremely useful things like execute sendmail and spew dubiously
accurate factoids.

From the feedback, it seems like it is an essential utility in a modern unix
and not at all a useless bikeshed. How do those Linux people live without it?
Reverts r358561.


# 3c565de3 02-Mar-2020 Conrad Meyer <cem@FreeBSD.org>

Fix typo in r278616

FreeBSD isn't an encyclopedia.


# e67975d3 09-Sep-2019 Gleb Smirnoff <glebius@FreeBSD.org>

Fix 'calendar -a' in several ways.

o Do not run any iconv() processing in -a. The locale of root user is not
what is desired by most of the users who receive their calendar mail.
Just assume that users store their calendars in a format that is readable
to them. This fixes regression from r344340.
o fork() and setusercontext(LOGIN_SETALL) for every user. This makes LANG
set inside a calendar file mostly excessive, as we will pick up user's
login class LANG.
o This also executes complex function cal() that parses user owned files
with appropriate user privileges.
Previously it was run with privileges dropped only temporary for execution
of cal(), and fully dropped only before invoking sendmail (see r22473).

Reviewed by: bapt (older version of patch)


# adedf5ee 19-Feb-2019 Baptiste Daroussin <bapt@FreeBSD.org>

calendar: use iconv to respect the output encoding

calendar(1) can have input in various encoding, specifying
LANG=<locale_name> to enable calendar(1) to determine which one to use.

The problem is the content of the calendar itself is exposed as is making it
unreadable in many cases. For example french calendar which is encoded
ISO8859-1 is rendered badly in a fr_FR.UTF-8 environment.

Using iconv allows to solve this issue.
This will also allow to keep only 1 encoding in base for those files without
breaking user existing setup

Reported by: many
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D19221


# e172d4c3 23-May-2018 Brad Davis <brd@FreeBSD.org>

Switch calendar installs to use FILES and SYMLINKS instead of bare install(1)

Also explicitly list each file to install so we don't silently add or miss
some.

Approved by: bapt (mentor)


# d511b20a 02-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Add HAS_TESTS to all Makefiles that are currently using the
`SUBDIR.${MK_TESTS}+= tests` idiom.

This is a follow up to r321912.


# 4b330699 02-Aug-2017 Enji Cooper <ngie@FreeBSD.org>

Convert traditional ${MK_TESTS} conditional idiom for including test
directories to SUBDIR.${MK_TESTS} idiom

This is being done to pave the way for future work (and homogenity) in
^/projects/make-check-sandbox .

No functional change intended.

MFC after: 1 weeks


# 509cc843 31-Oct-2016 Glen Barber <gjb@FreeBSD.org>

Fix packaging calendar(1) files.

Sponsored by: The FreeBSD Foundation


# e061f95e 04-Mar-2015 Baptiste Daroussin <bapt@FreeBSD.org>

Rework calendar(1) parser

Support includes surrounded by '"' or '<' '>'
Print warnings about bad syntax
Correctly navigate through include directories to find calendar files
Correctly support multiple includes

Tested by: gjb
MFC after: 1 week


# 3e11bd9e 25-Nov-2014 Baptiste Daroussin <bapt@FreeBSD.org>

Convert to usr.bin/ to LIBADD
Reduce overlinking


# ff2e5201 02-Jun-2014 Ed Maste <emaste@FreeBSD.org>

Remove extraneous "mkdir -p"

The directory hierarchy is created by an mtree file (BSD.usr.dist,
in the case of calendar(1)). An explicit "mkdir -p" in a program's
Makefile is redundant, and can mask a missing mtree entry.


# c6063d0d 05-May-2014 Warner Losh <imp@FreeBSD.org>

Use src.opts.mk in preference to bsd.own.mk except where we need stuff
from the latter.


# 3a92d97f 16-Mar-2014 Julio Merino <jmmv@FreeBSD.org>

Migrate most of tools/regression/usr.bin/ to the new tests layout.

I'm starting with the easy cases. The leftovers need to be looked at a
bit more closely.

Note that this change _does_ modify the code of the old tests. This is
required in order to allow the code to locate the data files in the
source directory instead of the current directory, because Kyua
automatically changes the latter to a temporary directory.

Also note that at least one test is known to be broken here. Actually,
the test is not really broken: it's marked as a TODO but unfortunately
Kyua's TAP parser currently does not understand that. Will have to be
fixed separately.


# 5d32a871 19-Sep-2013 Diane Bruce <db@FreeBSD.org>

- calendar uses cpp internally, this diff removes this usage and
substitutes a limited subset cpp processor internally.

PR: src/178463
Approved by: re (gjb)


# 2c32df44 16-Aug-2013 Gleb Smirnoff <glebius@FreeBSD.org>

Provide UTF-8 version of russian calendars.


# 385a06b9 23-Feb-2012 Sergey A. Osokin <osa@FreeBSD.org>

Add pt_BR.ISO8859-1 and pt_BR.UTF-8 directories to install.
It was forgotten in r219937 commit.

Approved by: edwin
MFC after: 1 week


# 4a955f14 08-Oct-2011 Ed Schouten <ed@FreeBSD.org>

Remove extraneous WARNS=7.

WARNS above 6 has no use. Also, all of usr.bin is also built with
WARNS=6 by default.

Discussed with: edwin


# 9c4bab2d 25-Nov-2010 Ulrich Spörlein <uqs@FreeBSD.org>

Pet make checkdpadd.


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 0b0b030b 29-Mar-2010 Edwin Groothuis <edwin@FreeBSD.org>

Bump WARNS to 7


# 2b84020d 29-Mar-2010 Edwin Groothuis <edwin@FreeBSD.org>

Long awaited update to the calendar system:

- Repeating events which span multiple years (because of -A, -B or
just the three days before the end of the year).

- Support for lunar events (full moon, new moon) and solar events
(equinox and solstice, chinese new year). Because of this, the
options -U (UTC offset) and -l (longitude) are available to
compensate if reality doesn't match the calculated values.

MFC after: 1 month


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# b7946da9 02-Jan-2010 Ed Schouten <ed@FreeBSD.org>

Build usr.bin/ with WARNS=6 by default.

Also add some missing $FreeBSD$ to keep svn happy.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 2ad08c56 28-Oct-2005 Ruslan Ermilov <ru@FreeBSD.org>

Add some significant Ukrainian dates.

PR: 88076
Submitted by: Andriy Gapon


# 7f28a418 16-Aug-2004 David Malone <dwmalone@FreeBSD.org>

Add Hungarian calendar entries.

PR: 42725
Submitted by: Janos Mohacsi <janos.mohacsi@bsd.hu>


# dd17ea59 04-Jun-2004 Josef El-Rayes <josef@FreeBSD.org>

Add austrian calendar as install target.

Approved by: le
Pointed out by: stefanf


# 1d35769f 09-Jun-2003 Andrey A. Chernov <ache@FreeBSD.org>

Remove deprecated locale names


# e5009256 30-Dec-2002 David E. O'Brien <obrien@FreeBSD.org>

This builds fine with WARNS.

Tested on: sparc64, athlon[32]


# d2893b16 29-Jul-2002 Ruslan Ermilov <ru@FreeBSD.org>

Drop support for COPY, -c has been the default mode of install(1)
for a long time now.

Approved by: bde


# 0b87f799 17-Jul-2002 Ruslan Ermilov <ru@FreeBSD.org>

s/${INSTALL} -c/${INSTALL} ${COPY}/


# 9b838be7 13-Jun-2002 Greg Lehey <grog@FreeBSD.org>

beforeinstall target:

- Remove superfluous ;
- create destination directories if they don't exist.


# d0b34894 13-May-2002 David Malone <dwmalone@FreeBSD.org>

Make a link from fr_FR.ISO8859-1 to fr_FR.ISO8859-15.

Submitted by: wollman


# d00a7c24 29-Apr-2002 David Malone <dwmalone@FreeBSD.org>

Don't use ISO_8859 when I should use ISO8859.


# df374705 28-Apr-2002 David Malone <dwmalone@FreeBSD.org>

Add a French calendar.

PR: 32265
Submitted by: Thierry Thomas <thierry@pompo.net>
MFC after: 1 week


# e35f9517 08-Feb-2002 Mark Murray <markm@FreeBSD.org>

Remove NO_WERRORs and WARNS=n's. To be revisited after GCC3.


# 91bd71d2 08-Feb-2002 Mark Murray <markm@FreeBSD.org>

Remove leaf node WARNS?=2 (that mainly I added). This should
help the GCC3 transition and CURRENT in general.


# 9e1e9c44 02-Dec-2001 Mark Murray <markm@FreeBSD.org>

WARNS=2 fixup (mostly. Some are Hard To Fix(tm), so NO_WERROR is set)
Use __FBSDID().
Sort some headers.


# f5b00d08 04-Nov-2001 Dima Dorfman <dd@FreeBSD.org>

Nuke spaces in front of tabs.


# b04359b9 10-Jun-2001 Andrey A. Chernov <ache@FreeBSD.org>

ISO_ -> ISO


# 3f5975dc 10-Jun-2001 Andrey A. Chernov <ache@FreeBSD.org>

Add new and Latin15 names


# f897bc64 04-May-2000 Alexey Zelkin <phantom@FreeBSD.org>

Rename calendars/ru_SU.KOI8-R to calendars/ru_RU.KOI8-R to reflect
locale name change (ru_SU.KOI8-R -> ru_RU.KOI8-R)

Not objected to by: ache


# 2c215927 04-May-2000 Alexey Zelkin <phantom@FreeBSD.org>

Add missing $FreeBSD$ tags


# d15a8f58 10-May-1996 Andrey A. Chernov <ache@FreeBSD.org>

Add russian data handling


# ab5dc107 10-May-1996 Andrey A. Chernov <ache@FreeBSD.org>

Localize it
Handle Orthodox Eastern
-Wall cleanup


# ffac7b87 02-Apr-1996 John Polstra <jdp@FreeBSD.org>

Removed the definition of the make variable SHAREDIR. It was clashing
with the definition in bsd.own.mk, causing "make world" to fall over.


# 921e4281 18-Feb-1996 Wolfram Schneider <wosch@FreeBSD.org>

Submitted by: bruce

replace shell loop with make(1) builtin loop


# 30c00b0d 17-Feb-1996 Wolfram Schneider <wosch@FreeBSD.org>

more verbose output during install foreign calendar files


# 7dd80983 09-Feb-1996 Wolfram Schneider <wosch@FreeBSD.org>

Submitted by: Slaven Rezic (Tomic) <eserte@cs.tu-berlin.de>
croatian calendar


# 0ae31243 05-Feb-1996 Andrey A. Chernov <ache@FreeBSD.org>

Don't make directory here, it is mtree task


# c9c822e6 01-Feb-1996 Wolfram Schneider <wosch@FreeBSD.org>

- handle events that move around from year to year, i.e.,
``the last Monday in April'
- handle easter

new options
-f calendarfile
-A days
-B days

Calendar HOME directory ~/.calendar
don't sent mail if ~/.calendar/nomail exist


# b22a0751 30-Jan-1996 Peter Wemm <peter@FreeBSD.org>

de_DE.ISO8859-1 -> de_DE.ISO_8859-1 after repository operation on
Andrey's request.


# b206b6bf 28-Jan-1996 Wolfram Schneider <wosch@FreeBSD.org>

install new calendars/de_DE.ISO8859-1/calendar.* files


# 9c0dc173 24-Jul-1995 Bruce Evans <bde@FreeBSD.org>

Change `install' to `${INSTALL}' so that default install flags can be
specified in the top level Makefiles.


# 9b50d902 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite Usr.bin Sources