From owner-svn-ports-all@freebsd.org Sun Oct 25 11:46:51 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4E72A44BE57; Sun, 25 Oct 2020 11:46:51 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4CJx5R10SNz3xBk; Sun, 25 Oct 2020 11:46:51 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 058B793EF; Sun, 25 Oct 2020 11:46:51 +0000 (UTC) (envelope-from se@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 09PBkoND016110; Sun, 25 Oct 2020 11:46:50 GMT (envelope-from se@FreeBSD.org) Received: (from se@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 09PBknxk016101; Sun, 25 Oct 2020 11:46:49 GMT (envelope-from se@FreeBSD.org) Message-Id: <202010251146.09PBknxk016101@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: se set sender to se@FreeBSD.org using -f From: =?UTF-8?Q?Stefan_E=c3=9fer?= Date: Sun, 25 Oct 2020 11:46:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r553259 - in head/deskutils/calendar: . files X-SVN-Group: ports-head X-SVN-Commit-Author: se X-SVN-Commit-Paths: in head/deskutils/calendar: . files X-SVN-Commit-Revision: 553259 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Oct 2020 11:46:51 -0000 Author: se Date: Sun Oct 25 11:46:49 2020 New Revision: 553259 URL: https://svnweb.freebsd.org/changeset/ports/553259 Log: Port of the FreeBSD calendar program from -CURRENT This version of the calendar program includes data file locations populated by the calendar-data port in the search path. It is meant to provide this feature to users of FreeBSD releases that have not received the updated calendar program, yet. Development of the calendar program will continue in the base system and the port will be updated to reflect changes made to the calendar program in FreeBSD-CURRENT. Different from the version in -CURRENT this port does not warn about missing calendar files provided by the calendar-data port since it has this port declared as a run-time dependency and it can therefore be assumed that the data port has been installed with this port. This port uses a preliminary location for the repository to fetch from. It is expected to be updated to an official repository with updated sources that eliminate the need for the patches that are currently required. Added: head/deskutils/calendar/ head/deskutils/calendar/Makefile (contents, props changed) head/deskutils/calendar/distinfo (contents, props changed) head/deskutils/calendar/files/ head/deskutils/calendar/files/patch-Makefile (contents, props changed) head/deskutils/calendar/files/patch-calendar.h (contents, props changed) head/deskutils/calendar/files/patch-io.c (contents, props changed) head/deskutils/calendar/files/patch-pathnames.h (contents, props changed) head/deskutils/calendar/pkg-descr (contents, props changed) Added: head/deskutils/calendar/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/calendar/Makefile Sun Oct 25 11:46:49 2020 (r553259) @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= calendar +DISTVERSION= 0.1 +CATEGORIES= deskutils + +MAINTAINER= se@FreeBSD.org +COMMENT= Port of the FreeBSD calendar program + +LICENSE= BSD3CLAUSE + +RUN_DEPENDS= ${LOCALBASE}/share/calendar/calendar.all:deskutils/calendar-data + +USE_GITHUB= yes +GH_ACCOUNT= bsdimp +GH_TAGNAME= fcc5d31 + +CFLAGS+= -DLOCALBASE=${LOCALBASE} +LDFLAGS+= -lm -lutil + +PLIST_FILES= bin/calendar \ + share/man/man1/calendar.1.gz + +OPTIONS_DEFINE= NLS +NLS_CFLAGS= -DWITH_ICONV + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/calendar ${STAGEDIR}${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/calendar.1 ${STAGEDIR}${PREFIX}/share/man/man1 + +.include Added: head/deskutils/calendar/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/calendar/distinfo Sun Oct 25 11:46:49 2020 (r553259) @@ -0,0 +1,3 @@ +TIMESTAMP = 1603625001 +SHA256 (bsdimp-calendar-0.1-fcc5d31_GH0.tar.gz) = ad7d0b51c4b834241aebbf6c50d187e5720f6c46c02615b27841a923e082aebc +SIZE (bsdimp-calendar-0.1-fcc5d31_GH0.tar.gz) = 132824 Added: head/deskutils/calendar/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/calendar/files/patch-Makefile Sun Oct 25 11:46:49 2020 (r553259) @@ -0,0 +1,126 @@ +--- Makefile.orig 2020-10-18 03:01:26 UTC ++++ Makefile +@@ -1,117 +1,14 @@ + # @(#)Makefile 8.1 (Berkeley) 6/6/93 + # $FreeBSD$ + +-.include +- + PROG= calendar +-SRCS= calendar.c locale.c events.c dates.c parsedata.c io.c day.c \ +- ostern.c paskha.c pom.c sunpos.c +-LIBADD= m util +-INTER= de_AT.ISO_8859-15 de_DE.ISO8859-1 fr_FR.ISO8859-1 \ +- hr_HR.ISO8859-2 hu_HU.ISO8859-2 pt_BR.ISO8859-1 \ +- pt_BR.UTF-8 ru_RU.KOI8-R ru_RU.UTF-8 uk_UA.KOI8-U +-DE_LINKS= de_DE.ISO8859-15 +-FR_LINKS= fr_FR.ISO8859-15 + +-.if ${MK_ICONV} == "yes" +-CFLAGS+= -DWITH_ICONV +-.endif ++OBJS= calendar.o locale.o events.o dates.o parsedata.o io.o day.o \ ++ ostern.o paskha.o pom.o sunpos.o + +-FILESGROUPS+= CALS +-CALS= calendars/calendar.all \ +- calendars/calendar.australia \ +- calendars/calendar.birthday \ +- calendars/calendar.brazilian \ +- calendars/calendar.christian \ +- calendars/calendar.computer \ +- calendars/calendar.croatian \ +- calendars/calendar.dutch \ +- calendars/calendar.freebsd \ +- calendars/calendar.french \ +- calendars/calendar.german \ +- calendars/calendar.history \ +- calendars/calendar.holiday \ +- calendars/calendar.hungarian \ +- calendars/calendar.judaic \ +- calendars/calendar.lotr \ +- calendars/calendar.music \ +- calendars/calendar.newzealand \ +- calendars/calendar.russian \ +- calendars/calendar.southafrica \ +- calendars/calendar.ukrainian \ +- calendars/calendar.usholiday \ +- calendars/calendar.world +-CALSDIR= ${SHAREDIR}/calendar ++LDFLAGS= -lm -lutil + +-CAL_de_AT.ISO_8859-15= calendar.feiertag ++all: ${PROG} + +-CAL_de_DE.ISO8859-1= calendar.all \ +- calendar.feiertag \ +- calendar.geschichte \ +- calendar.kirche \ +- calendar.literatur \ +- calendar.musik \ +- calendar.wissenschaft +- +-CAL_fr_FR.ISO8859-1= calendar.all \ +- calendar.fetes \ +- calendar.french \ +- calendar.jferies \ +- calendar.proverbes +- +-CAL_hr_HR.ISO8859-2= calendar.all \ +- calendar.praznici +- +-CAL_hu_HU.ISO8859-2= calendar.all \ +- calendar.nevnapok \ +- calendar.unnepek +- +-CAL_pt_BR.ISO8859-1= calendar.all \ +- calendar.commemorative \ +- calendar.holidays \ +- calendar.mcommemorative +- +-CAL_pt_BR.UTF-8= calendar.all \ +- calendar.commemorative \ +- calendar.holidays \ +- calendar.mcommemorative +- +-CAL_ru_RU.KOI8-R= calendar.all \ +- calendar.common \ +- calendar.holiday \ +- calendar.military \ +- calendar.orthodox \ +- calendar.pagan +- +-CAL_ru_RU.UTF-8= calendar.all \ +- calendar.common \ +- calendar.holiday \ +- calendar.military \ +- calendar.orthodox \ +- calendar.pagan +- +-CAL_uk_UA.KOI8-U= calendar.all \ +- calendar.holiday \ +- calendar.misc \ +- calendar.orthodox +- +-.for lang in ${INTER} +-FILESGROUPS+= CALS_${lang} +-CALS_${lang}DIR= ${SHAREDIR}/calendar/${lang} +-.for file in ${CAL_${lang}} +-CALS_${lang}+= ${file:S@^@calendars/${lang}/@} +-.endfor +-.endfor +- +- +-.for link in ${DE_LINKS} +-SYMLINKS+= de_DE.ISO8859-1 ${SHAREDIR}/calendar/${link} +-.endfor +-.for link in ${FR_LINKS} +-SYMLINKS+= fr_FR.ISO8859-1 ${SHAREDIR}/calendar/${link} +-.endfor +- +-HAS_TESTS= +-SUBDIR.${MK_TESTS}+= tests +- +-.include ++${PROG}: ${OBJS} ++ ${CC} ${OBJS} ${LDFLAGS} -o ${PROG} Added: head/deskutils/calendar/files/patch-calendar.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/calendar/files/patch-calendar.h Sun Oct 25 11:46:49 2020 (r553259) @@ -0,0 +1,11 @@ +--- calendar.h.orig 2020-10-18 03:01:26 UTC ++++ calendar.h +@@ -28,7 +28,7 @@ + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * +- * $FreeBSD$ ++ * $FreeBSD: head/usr.bin/calendar/calendar.h 358562 2020-03-03 00:20:08Z cem $ + */ + + #include Added: head/deskutils/calendar/files/patch-io.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/calendar/files/patch-io.c Sun Oct 25 11:46:49 2020 (r553259) @@ -0,0 +1,20 @@ +--- io.c.orig 2020-10-18 03:01:26 UTC ++++ io.c +@@ -42,7 +42,7 @@ static char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) + #endif + + #include +-__FBSDID("$FreeBSD$"); ++__FBSDID("$FreeBSD: head/usr.bin/calendar/io.c 366962 2020-10-23 09:22:23Z se $"); + + #include + #include +@@ -71,7 +71,7 @@ enum { + }; + + const char *calendarFile = "calendar"; /* default calendar file */ +-static const char *calendarHomes[] = {".calendar", _PATH_INCLUDE}; /* HOME */ ++static const char *calendarHomes[] = {".calendar", _PATH_INCLUDE_LOCAL, _PATH_INCLUDE}; /* HOME */ + static const char *calendarNoMail = "nomail";/* don't sent mail if file exist */ + + static char path[MAXPATHLEN]; Added: head/deskutils/calendar/files/patch-pathnames.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/calendar/files/patch-pathnames.h Sun Oct 25 11:46:49 2020 (r553259) @@ -0,0 +1,16 @@ +--- pathnames.h.orig 2020-10-18 03:01:26 UTC ++++ pathnames.h +@@ -29,9 +29,12 @@ + * SUCH DAMAGE. + * + * @(#)pathnames.h 8.1 (Berkeley) 6/6/93 +- * $FreeBSD$ ++ * $FreeBSD: head/usr.bin/calendar/pathnames.h 366962 2020-10-23 09:22:23Z se $ + */ + + #include + ++#define s1(s) #s ++#define s2(s) s1(s) + #define _PATH_INCLUDE "/usr/share/calendar" ++#define _PATH_INCLUDE_LOCAL s2(LOCALBASE) "/share/calendar" Added: head/deskutils/calendar/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/deskutils/calendar/pkg-descr Sun Oct 25 11:46:49 2020 (r553259) @@ -0,0 +1,6 @@ +This is the calendar program from FreeBSD converted into a port. + +The purpose of this port is to make upgrades to the calendar program +available independently of the FreeBSD release cycle. + +WWW: http://freebsd.org