LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 08-04-2017, 02:27 AM   #1
kzl
LQ Newbie
 
Registered: Feb 2017
Distribution: Slackware, FreeBSD, pfSense
Posts: 7

Rep: Reputation: Disabled
Classic BSD calendar in Slackware


Hi!

I'd like to use the bsd calendar under Slackware. How can I achieve that?
Can you recommend a slackbuild or translation source?

Thanks in advance
 
Old 08-04-2017, 03:24 AM   #2
SCerovec
Senior Member
 
Registered: Oct 2006
Location: Cp6uja
Distribution: Slackware on x86 and arm
Posts: 2,471
Blog Entries: 2

Rep: Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980Reputation: 980
Question

What's wrong with calendar(s) shipped with Slackware out of the box?
Code:
$ cal -y
                               2017                               

       January               February                 March       
Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7             1  2  3  4             1  2  3  4   
 8  9 10 11 12 13 14    5  6  7  8  9 10 11    5  6  7  8  9 10 11   
15 16 17 18 19 20 21   12 13 14 15 16 17 18   12 13 14 15 16 17 18   
22 23 24 25 26 27 28   19 20 21 22 23 24 25   19 20 21 22 23 24 25   
29 30 31               26 27 28               26 27 28 29 30 31      
                                                                     
        April                   May                   June        
Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
                   1       1  2  3  4  5  6                1  2  3   
 2  3  4  5  6  7  8    7  8  9 10 11 12 13    4  5  6  7  8  9 10   
 9 10 11 12 13 14 15   14 15 16 17 18 19 20   11 12 13 14 15 16 17   
16 17 18 19 20 21 22   21 22 23 24 25 26 27   18 19 20 21 22 23 24   
23 24 25 26 27 28 29   28 29 30 31            25 26 27 28 29 30      
30                                                                   
        July                  August                September     
Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
                   1          1  2  3  4  5                   1  2   
 2  3  4  5  6  7  8    6  7  8  9 10 11 12    3  4  5  6  7  8  9   
 9 10 11 12 13 14 15   13 14 15 16 17 18 19   10 11 12 13 14 15 16   
16 17 18 19 20 21 22   20 21 22 23 24 25 26   17 18 19 20 21 22 23   
23 24 25 26 27 28 29   27 28 29 30 31         24 25 26 27 28 29 30   
30 31                                                                
       October               November               December      
Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa   Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7             1  2  3  4                   1  2   
 8  9 10 11 12 13 14    5  6  7  8  9 10 11    3  4  5  6  7  8  9   
15 16 17 18 19 20 21   12 13 14 15 16 17 18   10 11 12 13 14 15 16   
22 23 24 25 26 27 28   19 20 21 22 23 24 25   17 18 19 20 21 22 23   
29 30 31               26 27 28 29 30         24 25 26 27 28 29 30   
                                              31
 
Old 08-04-2017, 03:32 AM   #3
aragorn2101
Member
 
Registered: Dec 2012
Location: Mauritius
Distribution: Slackware
Posts: 567

Rep: Reputation: 301Reputation: 301Reputation: 301Reputation: 301
If you don't want to use cal, there is gcal, which is actually supposed to replace the BSD style calendar, according to https://boutell.com/lsm/lsmbyid.cgi/001711.

So check out if this suits your needs: https://slackbuilds.org/repository/14.2/office/gcal/
 
1 members found this post helpful.
Old 08-04-2017, 03:44 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Slackware has 'cal' but not 'calendar'. Perhaps that's the one OP is referring to.

I found this port on sourceforge: https://sourceforge.net/projects/bsdcalendar/ but I've never downloaded/used it so I have no idea about the quality of the port (also it's rather old, but then it probably doesn't need much maintenence given its age.).

Last edited by GazL; 08-04-2017 at 07:45 AM.
 
1 members found this post helpful.
Old 08-04-2017, 05:28 AM   #5
kzl
LQ Newbie
 
Registered: Feb 2017
Distribution: Slackware, FreeBSD, pfSense
Posts: 7

Original Poster
Rep: Reputation: Disabled
Under Debian based distros the bsdmainutils package contains calendar, which is not the same as cal. First, I'll try gcal and see how close it gets to calendar. Otherwise I'll try the mentioned code from sourceforge.net. Thanks all!
 
Old 08-04-2017, 09:41 AM   #6
mid-kid
LQ Newbie
 
Registered: Oct 2016
Distribution: Gentoo
Posts: 25

Rep: Reputation: Disabled
If a package you need is available under another distro, don't hesitate to look at their sources! Some may be easy to read and understand (Arch), some slightly harder (Gentoo), and some borderline impossible without having read their packaging bible (Fedora/Debian), but you'll always be able to find a source archive, patches and possibly a Homepage URL.
In the case of bsdmainutils, https://packages.debian.org/source/sid/bsdmainutils, there isn't a Homepage mentioned.
If you look at the source (Debian Source Repository->tree), you'll see a readme, which quickly tells you why: https://anonscm.debian.org/cgit/bsdm...it/tree/README, and directs you to a file (which I seem to be unable to find) containing the source for each component if you'd want to fetch them yourself.
Thankfully, debian distributes easily downloaded and unpacked source archives for each of their packages, which makes it easy to compile yourself. Usually, there's two archives: a source .tar, and a "debian" .tar. You would then extract the source, and inside the source extract the debian tar, which contains patches and additional files. This package in particular has the debian folder in the same archive as the source.

This package requires libbsd, which is available in SBo. You should get that first.

Here's a SlackBuild I just made to build bsdmainutils: http://chunk.io/f/18472bce5835460bbe...kBuild?lang=sh
The sources are here: http://http.debian.net/debian/pool/m...12+nmu1.tar.gz
and here: https://sourceforge.net/projects/lib...1.6.02.tar.bz2

It differs slightly from the Debian package:
- Utilities that conflict with util-linux have been removed
- /etc/cron.daily/bsdmainutils has been installed in /usr/doc as cron.daily.
- Similarly, /etc/default/bsdmainutils has been installed in /usr/doc as bsdmainutils.default. Please verify these scripts work before using them in production, if you even need them!
- Other slight filesystem alterations to fit with the slackware filesystem.

EDIT: It got accepted into SBo! It should appear at https://slackbuilds.org/repository/1...c/bsdmainutils by next update!

Last edited by mid-kid; 08-05-2017 at 11:56 AM.
 
4 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Conky calendar having trouble with Slackware Randicus Draco Albus Slackware 8 08-09-2014 06:18 PM
LXer: What Makes a Classic Linux Desktop 'Classic'? LXer Syndicated Linux News 0 02-19-2014 04:10 PM
[SOLVED] Slackware 14.0 kicker panel calendar... irgunII Slackware 5 09-16-2013 12:37 PM
iPod Classic, Slackware-12.1, ripping, tagging, etc. Franklin Slackware 3 08-21-2008 10:16 AM
LXer: Slackware: the classic distro that's as timely as ever. LXer Syndicated Linux News 0 09-28-2007 12:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration