Compare commits

...

15 Commits

Author SHA1 Message Date
Solene Rapenne 67843f0a5a create the site map with a sorted order 2022-07-02 15:49:27 +02:00
Solene Rapenne a5e947459b create the atom feed with the issues in the correct order 2022-07-02 15:47:01 +02:00
Solene Rapenne 61d8731a0a allow to create an issue on Linux 2022-07-02 15:43:12 +02:00
Solene Rapenne 71777e5d90 prepare issue #11 2022-07-02 15:22:48 +02:00
Solene Rapenne 561844b63a Update the issue template 2022-07-02 15:22:14 +02:00
Solene Rapenne 3e487f6cdd 10th issue should be ready 2022-07-02 15:21:43 +02:00
Solene Rapenne 752dc10122 10th issue release getting closer 2022-07-02 12:29:10 +02:00
prx 38e8801385 improve tip, no root, round up memsize 2022-06-29 15:20:49 +02:00
prx a9d604f1d4 issue-6 fr translation 2022-06-26 16:34:57 +02:00
prx c833658f9a rename correctly issue-8 fr translation file 2022-06-26 16:34:38 +02:00
prx c67385144f translate issue 8 to fr 2022-06-22 14:21:49 +02:00
prx 5b97a9865b added syspatches for 7.1 2022-06-21 16:25:48 +02:00
prx 10dfb750b4 fix tip to use 10% 2022-06-08 09:18:31 +02:00
prx 7c0482685c fix multiple language in English page 2022-06-07 14:26:33 +02:00
prx cd904b351f started issue 10 2022-05-27 15:23:33 +02:00
37 changed files with 606 additions and 40 deletions

View File

@ -2,7 +2,6 @@ Tips
----
webzine has a dark mode, how to enable it in firefox / chrome
how to use openrsync from base system
/tmp in mfs
how to mimic lsblk on Linux
Article
@ -11,9 +10,8 @@ difference between zzz and ZZZ
Current changes
---------------
new ports: aerc, gmid, fheroes2, fd, sdorfehs, qpdfview
new ports:
python3 and libreoffice built with LTO, +40% to +70% perf improve for python
pkg_add -u super fast
forwarding is now parallel
Questions
@ -22,7 +20,6 @@ how to help and contribute? Where to start? Is there a todo list?
Links
-----
https://text.causal.agency/016-using-openbsd.txt
Communities
-----------

View File

@ -1,14 +1,14 @@
TEMPDIR=/tmp/openbsd-webzine
generate-site: clean
ls | grep issue- | sort -n | xargs -n 1 tools/make_issue.sh
-ls | grep issue- | sort -n | xargs -n 1 env LN=cs tools/make_issue.sh
-ls | grep issue- | sort -n | xargs -n 1 env LN=de tools/make_issue.sh
-ls | grep issue- | sort -n | xargs -n 1 env LN=es tools/make_issue.sh
-ls | grep issue- | sort -n | xargs -n 1 env LN=fr tools/make_issue.sh
-ls | grep issue- | sort -n | xargs -n 1 env LN=it tools/make_issue.sh
-ls | grep issue- | sort -n | xargs -n 1 env LN=se tools/make_issue.sh
-ls | grep issue- | sort -n | xargs -n 1 env LN=ru tools/make_issue.sh
ls | grep issue- | sort -V | xargs -n 1 tools/make_issue.sh
-ls | grep issue- | sort -V | xargs -n 1 env LN=cs tools/make_issue.sh
-ls | grep issue- | sort -V | xargs -n 1 env LN=de tools/make_issue.sh
-ls | grep issue- | sort -V | xargs -n 1 env LN=es tools/make_issue.sh
-ls | grep issue- | sort -V | xargs -n 1 env LN=fr tools/make_issue.sh
-ls | grep issue- | sort -V | xargs -n 1 env LN=it tools/make_issue.sh
-ls | grep issue- | sort -V | xargs -n 1 env LN=se tools/make_issue.sh
-ls | grep issue- | sort -V | xargs -n 1 env LN=ru tools/make_issue.sh
tools/make_issue.sh _index ../public/index.html
cp -fr _static/* ../public/
tools/sitemap.sh webzine.puffy.cafe ../public/ > ../public/sitemap.xml
@ -33,14 +33,14 @@ test:
# only difference with generate-site is make_issue.sh -t
testsite: clean
ls | grep issue- | sort -n | xargs -n 1 tools/make_issue.sh -t
-ls | grep issue- | sort -n | xargs -n 1 env LN=cs tools/make_issue.sh -t
-ls | grep issue- | sort -n | xargs -n 1 env LN=de tools/make_issue.sh -t
-ls | grep issue- | sort -n | xargs -n 1 env LN=es tools/make_issue.sh -t
-ls | grep issue- | sort -n | xargs -n 1 env LN=fr tools/make_issue.sh -t
-ls | grep issue- | sort -n | xargs -n 1 env LN=it tools/make_issue.sh -t
-ls | grep issue- | sort -n | xargs -n 1 env LN=se tools/make_issue.sh -t
-ls | grep issue- | sort -n | xargs -n 1 env LN=ru tools/make_issue.sh -t
ls | grep issue- | sort -V | xargs -n 1 tools/make_issue.sh -t
-ls | grep issue- | sort -V | xargs -n 1 env LN=cs tools/make_issue.sh -t
-ls | grep issue- | sort -V | xargs -n 1 env LN=de tools/make_issue.sh -t
-ls | grep issue- | sort -V | xargs -n 1 env LN=es tools/make_issue.sh -t
-ls | grep issue- | sort -V | xargs -n 1 env LN=fr tools/make_issue.sh -t
-ls | grep issue- | sort -V | xargs -n 1 env LN=it tools/make_issue.sh -t
-ls | grep issue- | sort -V | xargs -n 1 env LN=se tools/make_issue.sh -t
-ls | grep issue- | sort -V | xargs -n 1 env LN=ru tools/make_issue.sh -t
tools/make_issue.sh _index ../public/index.html
cp -fr _static/* ../public/
tools/sitemap.sh webzine.puffy.cafe ../public/ > ../public/sitemap.xml

View File

@ -1,6 +1,7 @@
<article id="issues">
<h2>Issues published</h2>
<ul>
<li>2022-07-02 - Issue #10 <a class="permalink" href="issue-10.html">[English]</a></li>
<li>2022-04-21 - Issue #9 <a class="permalink" href="issue-9.html">[English]</a>, <a class="permalink" href="cs_issue-9.html">[Czech]</a>, <a class="permalink" href="es_issue-9.html">[Spanish]</a>, <a class="permalink" href="fr_issue-9.html">[French]</a>, <a class="permalink" href="it_issue-9.html">[Italian]</a>, <a href="se_issue-9.html" class="permalink">[Swedish]</a>, <a class="permalink" href="ru_issue-9.html">[Russian]</a></li>
<li>2022-03-22 - Issue #8 <a class="permalink" href="issue-8.html">[English]</a></li>
<li>2022-02-24 - Issue #7 <a class="permalink" href="issue-7.html">[English]</a>, <a class="permalink" href="fr_issue-7.html">[French]</a></li>

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 KiB

View File

@ -1,6 +1,8 @@
<article id="headlines">
<h2>TL;DR</h2>
<ul>
<li>OpenBSD 7.0 release very soon</li>
<li></li>
<li></li>
<li></li>
</ul>
</article>

View File

@ -1,9 +1,9 @@
<article id="stable">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>7.0-stable updates (since last webzine issue)</h2>
<h2>7.1-stable updates (since last webzine issue)</h2>
<ul>
<li><strong>Syspatch</strong>:
<a href="" class="permalink">015</a> (all architectures)
<a href="" class="permalink">001</a> (all architectures)
</li>
<li><strong>Package updates</strong>:</li>
</ul>

View File

@ -3,5 +3,8 @@
<h2>Going further</h2>
<ul>
<li><a class="permalink" href=""></a></li>
<li><a class="permalink" href=""></a></li>
<li><a class="permalink" href=""></a></li>
<li><a class="permalink" href=""></a></li>
</ul>
</article>

View File

@ -0,0 +1,17 @@
<article id="redaction">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Note from the editorial team</h2>
<p>
</p>
<h3>Note from Solene</h3>
<p>
This issue is late again. It's hard to find a good publication rate fitting with this hobby work. Originally, I planned to publish every two weeks, that would allow me to gently gather links and material for a new zine, but at the same time there are periods like before a new release during which nothing happen. On the other hand, when waiting long between publications without having a clear deadline, a lot of content need to be covered and it accumulates in a huge pile, which is not necessarily fun to go through.
However, while the Webzine is late on schedule, it reached HEIGHT different languages; not all the issues got translated into the height languages but it's been very comforting to meet all the people working on the translations, THANKS!
</p>
</article>
<article id="authors">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Authors</h2>
<p>Solène Rapenne, prx, Vincent Finance and other people who contributed outside of git that I may have forgotten. Many thanks to everyone involved and supportive of the idea!</p>
</article>

View File

@ -1 +1 @@
issue-10
issue-11

View File

@ -0,0 +1,8 @@
<header>
<h2 id="title"><a href="https://webzine.puffy.cafe"><span id="open">Open</span><span id="bsd">BSD</span> Webzine</a></h2>
<div id="banner">
<p>ISSUE #__ISSUE__</p>
<p><time datetime="__DATETIME__">__HUMAN_DATE__</time></p>
</div>
</header>
<main>

View File

@ -0,0 +1,10 @@
<article id="headlines">
<h2>TL;DR</h2>
<ul>
<li>pkg_add -u speedup in -current, now you can upgrade at ludicrous speed</li>
<li>IP forwarding is now parallelized</li>
<li>Many new packages landed in -current</li>
<li>Many links to read</li>
<li>Don't forget to update your 7.1 system with <code>syspatch</code> and packages with <code>pkg_add -u</code>
</ul>
</article>

View File

@ -0,0 +1,38 @@
<article id="current">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Recent -current changes</h2>
<ul>
<li>The <code>${rcexec}</code> variable used to start daemons with rc.d(8) has been replaced with a more complete rc_exec() function. Handcrafted rc.d(8) scripts must be modified to use this new function: <code># sed -i 's/\${rcexec}/rc_exec/' /etc/rc.d/myscript</code></li>
<li>pkg_add received <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=165122901325173&w=2">a huge speedup</a> for when upgrading packages; instead of downloading the first bits of each packages to check for update, it uses a local cache embedded in the quirks package</li>
<li>IP forwarding got faster <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=165157839007714&w=2">when using multiple CPU</a></li>
<li>Battery life <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=165222104109566&w=2">should improve</a> for certain workload</li>
<li>grep received a <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=165624097121480&w=2">new --null flag</a></li>
<li>xlock received <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=165625250024871&w=2">privilege separation</a></li>
</ul>
<h2>Interesting new packages</h2>
<p>A lot of new packages got imported, some are alternatives of packages already available, but many are bringing possibilities we didn't have before.</p>
<ul>
<li><a href="https://aerc-mail.org" class="permalink">aerc</a>, terminal email client</li>
<li><a href="https://github.com/cdown/clipnotify" class="permalink">clipnotify</a>, notify on new X clipboard events</li>
<li><a href="https://github.com/cdown/clipmenu" class="permalink">clipmenu</a>, clipboard management using dmenu</li>
<li><a href="https://github.com/ajeetdsouza/clidle" class="permalink">clidle</a>, play wordle in the terminal</li>
<li><a href="https://tildegit.org/solene/obsdfreqd/" class="permalink">obsdfreqd</a>, CPU frequency scheduler</li>
<li><a href="https://guacamole.apache.org/" class="permalink">guacamole</a>, remote desktop gateway</li>
<li><a href="https://github.com/mikebrady/shairport-sync" class="permalink">shairport-sync</a>, AirPlay audio player</li>
<li><a href="https://github.com/PapirusDevelopmentTeam/papirus-icon-theme" class="permalink">papirus-icon-theme</a>, paper icon set with new icons</li>
<li><a href="https://github.com/dani-garcia/vaultwarden" class="permalink">vaultwarden</a>, unofficial Bitwarden compatible server</li>
<li><a href="https://tildegit.org/solene/AppManager/" class="permalink">AppManager</a>, graphical interface to manage/explore OpenBSD packages</li>
<li><a href="https://github.com/sshuttle/sshuttle" class="permalink">sshuttle</a>, VPN over an SSH tunnel</li>
<li><a href="https://github.com/WebAssembly/binaryen" class="permalink">binaryen</a>, compiler and toolchain infrastructure library for WebAssembly</li>
<li><a href="https://docs.gotosocial.org/en/latest/" class="permalink">GoToSocial</a>, lightweight Fediverse compatible server</li>
<li><a href="https://github.com/monicahq/monica" class="permalink">monica</a>, self hosted personal CRM system</li>
<li><a href="http://www.epicsol.org/" class="permalink">EPIC</a>, ircII client 5th generation</li>
<li><a href="https://orama-interactive.itch.io/pixelorama" class="permalink">pixelorama</a>, pixel art editor</li>
<li><a href="https://github.com/Nheko-Reborn/nheko" class="permalink">nheko</a>, Qt client for Matrix</li>
<li><a href="https://gmid.omarpolo.com/" class="permalink">gmid</a>, simple gemini server </li>
<li><a href="https://ihhub.github.io/fheroes2/" class="permalink">fheroes2</a>, engine recreation for Heroes of Might and Magic 2 </li>
<li><a href="https://github.com/sharkdp/fd" class="permalink">fd</a>, simple, fast and user-friendly alternative to 'find'</li>
<li><a href="https://github.com/jcs/sdorfehs" class="permalink">sdorfehs</a>, tiling window manager with a weird name</li>
<li><a href="https://launchpad.net/qpdfview" class="permalink">qpdfview</a>, tabbed DjVu/PDF/PS document viewer</li>
</ul>
</article>

View File

@ -0,0 +1,14 @@
<article id="stable">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>7.1-stable updates (since last webzine issue)</h2>
<ul>
<li><strong>Syspatch</strong>:
<a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.1/common/001_wifi.patch.sig" class="permalink">001</a> (all architectures),
<a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.1/common/002_ipsec.patch.sig" class="permalink">002</a> (all architectures),
<a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.1/common/003_kqueue.patch.sig" class="permalink">003</a> (all architectures),
<a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.1/common/004_asn1.patch.sig" class="permalink">004</a> (all architectures),
<a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.1/common/005_pppoe.patch.sig" class="permalink">001</a> (all architectures).
</li>
<li><strong>Package updates</strong>: amused, apache-httpd, arouteserver, asterisk, bro, clamav, cups, curl, dnsmasq, dovecot, epiphany, exo, firefox-esr, fish, icinga, isc-bind, jenkins, liblouis, libmad, libxml, luadbi, mariadb, mozilla-thunderbird, mupdf, mutt, netatalk3, nextcloud, nspr, nut, obsf4proxy, openssl, php, postgresql, prosody, py-buildslave, python3, rcube-dovecot_ident, redis, roundcubemail, rsync, rsyslog, ruby, sqlite3, squid, sthttpd, subversion, telegraf, tiff, tomcat, tor, tor-browser, unrar, unzip, webkitgtk4, wireshark, xz</li>
</ul>
</article>

View File

@ -0,0 +1,18 @@
<article id="tips">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Shell tips</h2>
<p>To improve performance or reduce disk i/o for some workload, you can mount /tmp in memory using mount_mfs. When doing so, the new fstab entry would look like this:</p>
<pre>swap /tmp mfs rw,nodev,nosuid,-s=800MB 0 0</pre>
<p>In this example, we used 800MB, you should adapt according to how much memory you want for /tmp.</p>
<p>You can find your memory size using dmesg and awk:</p>
<pre>dmesg | awk '/avail mem/'</pre>
<p>
Here is a command generating a fstab entry assigning 10% of your memory to /tmp/, you can use it in place of your /tmp/ entry:
</p>
<pre>
printf "swap /tmp mfs rw,nodev,nosuid,-s=%sB 0 0\n" \
$(dmesg |awk '/avail mem/ { print int($4 /10) }')
</pre>
<p>You need to adjust /tmp permissions:</p>
<pre> # chmod 1777 /tmp</pre>
</article>

View File

@ -0,0 +1,27 @@
<article id="links">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Going further</h2>
<ul>
<li><a class="permalink" href="https://libthom.so/posts/2022/openbsd-framework-laptop/">OpenBSD on the Framework laptop</a></li>
<li><a class="permalink" href="https://sohcahtoa.org.uk/openbsd.html">Running OpenBSD 7.1 on your laptop is really hard (not)</a></li>
<li><a class="permalink" href="https://videos.pair2jeux.tube/videos/watch/9408fa52-80ac-4558-baf9-b61bad715494">OpenBSD gaming video: Bottomless</a></li>
<li><a class="permalink" href="https://qorg11.net/openbsd.xhtml">My experiences with OpenBSD</a></li>
<li><a class="permalink" href="https://dataswamp.org/~solene/2022-05-03-contributing-to-openbsd.html">How to contribute to the OpenBSD project</a></li>
<li><a class="permalink" href="https://briancallahan.net/blog/20220426.html">Let's try V on OpenBSD</a></li>
<li><a class="permalink" href="https://xosc.org/timemachine.html">Time Machine like Backups on OpenBSD</a></li>
<li><a class="permalink" href="https://videos.pair2jeux.tube/videos/watch/e323e131-f63f-40e6-9de3-22a2d1300605">OpenBSD gaming video: Crystal project</a></li>
<li><a class="permalink" href="https://bsandro.tech/posts/openbsd-7.1-on-pine64-rockpro64/">OpenBSD 7.1 on PINE64 RockPro64</a></li>
<li><a class="permalink" href="https://confuzeus.com/shorts/openbsd-nuclear-apocalypse/">OpenBSD is the Perfect OS post Nuclear Apocalypse</a></li>
<li><a class="permalink" href="https://dataswamp.org/~solene/2022-05-05-i-wrote-a-gui-frontend-with-a-game-engine.html">Using a game engine to write a graphical interface to the OpenBSD package manager</a></li>
<li><a class="permalink" href="https://text.causal.agency/016-using-openbsd.txt">Using OpenBSD for real</a></li>
<li><a class="permalink" href="https://dataswamp.org/~solene/2022-05-05-openbsd-declarative-packages-with-pkgset.html">Managing OpenBSD installed packages declaratively</a></li>
<li><a class="permalink" href="https://undeadly.org/cgi?action=article;sid=20220701171631">r2k22 Hackathon Report: Job Snijders (job@)</a></li>
<li><a class="permalink" href="https://dataswamp.org/~solene/2022-06-22-openbsd-selling-arguments.html">How I would sell OpenBSD as a salesperson</a></li>
<li><a class="permalink" href="https://medium.com/@chrissicool/analyze-openbsds-kernel-with-domain-specific-knowledge-ca665d92eebb">Analyze OpenBSDs Kernel with Domain-Specific Knowledge</a></li>
<li><a class="permalink" href="https://dataswamp.org/~solene/2022-04-23-openbsd-video-tutorial-installation.html">Video guide to install OpenBSD 7.1 with the GNOME desktop</a></li>
<li><a class="permalink" href="https://www.cambus.net/differences-between-base-and-ports-llvm-in-openbsd/">Differences between base and ports LLVM in OpenBSD </a></li>
<li><a class="permalink" href="https://blog.passwordclass.xyz/blogs/2022/06/0-dependency-websites-with-openbsd-asciidoc.html">0 Dependency Websites with OpenBSD & AsciiDoc</a></li>
<li><a class="permalink" href="https://flak.tedunangst.com/post/compiling-an-openbsd-kernel-50-faster">compiling an openbsd kernel 50% faster</a></li>
<li><a class="permalink" href="https://briancallahan.net/blog/20220427.html">I ported the new Hare compiler to OpenBSD</a></li>
</ul>
</article>

View File

@ -0,0 +1,13 @@
<article id="artwork">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Artworks of the moment</h2>
<figure>
<a href="images/artwork-issue10.png">
<picture>
<img src="images/artwork-issue10.png"
alt="A Puffy using a computer" />
</picture>
</a>
<figcaption>Puffy using a computer with a real mouse sleeping nearby, artwork realized by prahou</figcaption>
</figure>
</article>

View File

@ -0,0 +1,17 @@
<article id="redaction">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Note from the editorial team</h2>
<p>
</p>
<h3>Note from Solene</h3>
<p>
This issue is late again. It's hard to find a good publication rate fitting with this hobby work. Originally, I planned to publish every two weeks, that would allow me to gently gather links and material for a new zine, but at the same time there are periods like before a new release during which nothing happen. On the other hand, when waiting long between publications without having a clear deadline, a lot of content need to be covered and it accumulates in a huge pile, which is not necessarily fun to go through.
However, while the Webzine is late on schedule, it reached HEIGHT different languages; not all the issues got translated into the height languages but it's been very comforting to meet all the people working on the translations, THANKS!
</p>
</article>
<article id="authors">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Authors</h2>
<p>Solène Rapenne, prx, Vincent Finance and other people who contributed outside of git that I may have forgotten. Many thanks to everyone involved and supportive of the idea!</p>
</article>

View File

@ -0,0 +1 @@
PUBLISHED_DATE="2022-07-02T13:37:42Z"

View File

@ -0,0 +1,8 @@
<header>
<h2 id="title"><a href="https://webzine.puffy.cafe"><span id="open">Open</span><span id="bsd">BSD</span> Webzine</a></h2>
<div id="banner">
<p>ISSUE #__ISSUE__</p>
<p><time datetime="__DATETIME__">__HUMAN_DATE__</time></p>
</div>
</header>
<main>

View File

@ -0,0 +1,8 @@
<article id="headlines">
<h2>TL;DR</h2>
<ul>
<li></li>
<li></li>
<li></li>
</ul>
</article>

View File

@ -0,0 +1,9 @@
<!--
<article id="jobs">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h1>Job offers</h1>
<ul>
<li><a class="permalink" href=""></a></li>
</ul>
</article>
-->

View File

@ -0,0 +1,11 @@
<article id="current">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Recent -current changes</h2>
<ul>
<li></li>
</ul>
<h2>Interesting new packages</h2>
<ul>
<li><a href="" class="permalink">NAME</a>, DESC</li>
</ul>
</article>

View File

@ -0,0 +1,10 @@
<article id="stable">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>7.1-stable updates (since last webzine issue)</h2>
<ul>
<li><strong>Syspatch</strong>:
<a href="" class="permalink">001</a> (all architectures)
</li>
<li><strong>Package updates</strong>:</li>
</ul>
</article>

View File

@ -0,0 +1,10 @@
<article id="interview">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>OpenBSD developer Interview</h2>
<div>
<p><strong>who question</strong>: question</p>
<p><strong>who answer</strong>: answer.</p>
</div>
</article>

View File

@ -0,0 +1,6 @@
<article id="tips">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Shell tips</h2>
<p>
</p>
</article>

View File

@ -0,0 +1,8 @@
<article id="comments">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Reader comments</h2>
<p>
<em>Message received from XXX: </em>
<quote>blabla.</quote>
</p>
</article>

View File

@ -0,0 +1,10 @@
<article id="links">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Going further</h2>
<ul>
<li><a class="permalink" href=""></a></li>
<li><a class="permalink" href=""></a></li>
<li><a class="permalink" href=""></a></li>
<li><a class="permalink" href=""></a></li>
</ul>
</article>

View File

@ -0,0 +1,15 @@
<!-- section commented
<article id="artwork">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Artworks of the moment</h2>
<figure>
<a href="images/puffer_city_original.jpg">
<picture>
<img src="images/puffer_city_small.jpg"
alt="A drawing featuring a city viewed from some altitude with many characters looking like OpenBSD mascot." />
</picture>
</a>
<figcaption>MASCOT</figcaption>
</figure>
</article>
END HTML Comment -->

View File

@ -0,0 +1,7 @@
<article id="socials">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>On social media</h2>
<ul>
<li><a class="permalink" href=""></a></li>
</ul>
</article>

View File

@ -0,0 +1,12 @@
<!-- section commented
<article id="quotes">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Quote</h2>
<blockquote>
glub
<cite>&mdash; Puffy</cite>
</blockquote>
</article>
END HTML Comment -->

View File

@ -0,0 +1,17 @@
<article id="redaction">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Note from the editorial team</h2>
<p>
</p>
<h3>Note from Solene</h3>
<p>
This issue is late again. It's hard to find a good publication rate fitting with this hobby work. Originally, I planned to publish every two weeks, that would allow me to gently gather links and material for a new zine, but at the same time there are periods like before a new release during which nothing happen. On the other hand, when waiting long between publications without having a clear deadline, a lot of content need to be covered and it accumulates in a huge pile, which is not necessarily fun to go through.
However, while the Webzine is late on schedule, it reached HEIGHT different languages; not all the issues got translated into the height languages but it's been very comforting to meet all the people working on the translations, THANKS!
</p>
</article>
<article id="authors">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Authors</h2>
<p>Solène Rapenne, prx, Vincent Finance and other people who contributed outside of git that I may have forgotten. Many thanks to everyone involved and supportive of the idea!</p>
</article>

View File

@ -0,0 +1 @@
PUBLISHED_DATE="2022-08-16T11:55:11Z"

View File

@ -0,0 +1,84 @@
<header>
<h2 id="title"><a href="https://webzine.puffy.cafe"><span id="open">Open</span><span id="bsd">BSD</span> Webzine</a></h2>
<div id="banner">
<p>ISSUE #__ISSUE__</p>
<p><time datetime="__DATETIME__">__HUMAN_DATE__</time></p>
</div>
</header>
<main>
<article id="headlines">
<h2>TL;DR</h2>
<ul>
<li>Bonne année !</li>
</ul>
</article>
<article id="current">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Changements récents dans -current</h2>
<ul>
<li>La dernière partie du gestionnaire uvm <a href="https://marc.info/?l=openbsd-cvs&m=164069735510886&w=2" class="permalink">a été débloquée</a>. Sans être expert sur le sujet, cela a donné lieu à des améliorations des performances pour une utilisation bureautique et c'est une étape importante pour continuer le travail de déblocage.</li>
<li>Dans la base, llvm <a href="https://marc.info/?l=openbsd-cvs&m=163974394917393&w=2" class="permalink">mis à jour vers la version 13</a></li>
<li>Nouveau pilote wifi mtw pour les appareils MediaTek MT7601U <a href="https://marc.info/?l=openbsd-cvs&m=164000871323401&w=2" class="permalink">importés par le nouveau développeur James Hastings (hastings@)</a></li>
<li>ssh reçoit le support pour <a href="https://www.undeadly.org/cgi?action=article;sid=20211220061017" class="permalink">des restrictions dans ssh-agent</a></li>
<li>Nombreux nettoyages dans libcrypto, libressl, dhcpleased, et bien d'autres</li>
</ul>
</article>
<article id="stable">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Mises à jour pour 7.0-stable (depuis le dernier numéro)</h2>
<ul>
<li><strong>Syspatch</strong>: <a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.0/common/007_xserver.patch.sig" class="permalink">007</a> et <a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.0/common/008_mrt.patch.sig" class="permalink">008</a>. Toutes architecture.</li>
<li><strong>Mises à jour de paquets</strong> : ruby, nss, libvirt, nextcloud, tailscale, msmtp, solr, jenkins, ghidra, samba, thunderbird, apache, wireshark, roundcubemail</li>
</ul>
</article>
<article id="tips">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Astuces Shell</h2>
<p>
Saviez-vous que votre shell a des raccourcis clavier? Ils sont bien utiles. Voici une liste pour le mode par défaut ("mode emacs") :
<ul>
<li><code>ctrl+r</code>: chercher dans l'historique</li>
<li><code>ctrl+a</code> et <code>ctrl+e</code> : déplacer le curseur au début ou à la fin de la ligne</li>
<li><code>alt+d</code> et <code>alt+backspace</code> : suprimer le mot avant ou après le curseur</li>
<li><code>ctrl+k</code> et <code>ctrl+u</code> : supprimer le texte avant ou après le cursuer (sauf dans ksh où <code>ctrl+u</code> supprime toute la ligne)</li>
<li><code>ctrl+y</code>: colle le dernier texte sélectionné</li>
</ul>
Le shell peut aussi être utilisé en mode vi, mais je garde ça pour un autre numéro du webzine.
</p>
</article>
<article id="links">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Aller plus loin</h2>
<ul>
<li><a class="permalink" href="https://www.bsdnow.tv/435">BSDNow podcast interviewed Solène Rapenne</a></li>
<li><a class="permalink" href="https://www.tumfatig.net/2021/openbsd-on-mele-quieter2/">OpenBSD on MeLE Quieter2</a></li>
<li><a class="permalink" href="https://icyphox.sh/blog/signal-vmm/">Signal Desktop on OpenBSD via vmm(4)</a></li>
<li><a class="permalink" href="https://mvieira.fr/posts/install-openbsd-on-geticloud-vps/">Install OpenBSD 7.0 on a Geticloud VPS</a></li>
<li><a class="permalink" href="https://write.as/adventures-in-bsd/">Adventures in BSD</a> (the author narrates experiences with a new installation of OpenBSD)</li>
</ul>
</article>
<article id="artwork">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Oeuvre d'art du moment</h2>
<figure>
<a href="images/artwork-issue6.jpg">
<picture>
<img src="images/tn_artwork-issue6.jpg"
alt="Un puffy bouleversé avec un casque audio et un petit coeur flottant à sa droite. Il est étiqueté Puffones." />
</picture>
</a>
<figcaption>"End of year gifts." by <a href="https://bsd.network/@prahou" class="permalink">Tomáš</a></figcaption>
</figure>
</article>
<article id="redaction">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Note de l'équipe éditoriale</h2>
<p>
Salut, et meilleurs voeux pour 2022 à tout le monde. J'ai été en contact avec certaines personnes souhaitant traduire le webzine dans d'autres langues, c'est absolument génial mais pour l'instant la méthode de génération du webzine ne prend pas en charge les traductions. Je vais devoir travailler là-dessus pour rendre les traductions possibles. J'ai été très occupée en Décembre; je n'ai paseu beaucoup de temps pour travailler sur ce numéro et cela se remarque tant par le délai et le contenu, mais en même temps le projet OpenBSD est resté calme pendant cette période.
</p>
</article>
<article id="authors">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Authors</h2>
<p>Solène Rapenne, Vincent Finance, prx, pamela@ et d'autres contributions en dehors de git que j'ai pu oublier. Merci à toutes les personnes investies et supportant le projet!</p>
</article>

View File

@ -0,0 +1,149 @@
<header>
<h2 id="title"><a href="https://webzine.puffy.cafe"><span id="open">Open</span><span id="bsd">BSD</span> Webzine</a></h2>
<div id="banner">
<p>ISSUE #__ISSUE__</p>
<p><time datetime="__DATETIME__">__HUMAN_DATE__</time></p>
</div>
</header>
<main>
<article id="headlines">
<h2>TL;DR</h2>
<ul>
<li>OpenBSD sur Apple M1 est plus facile d'accès</li>
<li>httpd supporte la compression gzip statique</li>
<li>De nombreuses améliorations des performances wifi</li>
<li>Nouvelle section Question/réponses du webzine</li>
<li>Le Webzine est en cours de traduction vers l'allemand et le français (voir l'index du site)</li>
</ul>
</article>
<article id="current">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Changements récents dans -current</h2>
<p>De nombreux changements dans current depuis le dernier numéro, c'est
génial!</p>
<ul>
<li><a href="https://marc.info/?l=openbsd-cvs&m=164599382324670&w=2" class="permalink">Support de la compression gzip statique dans httpd</a>, le patch a été développé pour le webzine par notre auteur prx et testé pour le webzine.</li>
<li><a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164609772318735&w=2">nouveau paramètre rtable dans login.conf</a> pour définir une table de routage par défaut par classe</li>
<li>OpenBSD supporte maintenant les machines Apple <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164617014016658&w=2">M1 Pro/Max</a>.</li>
<li>OpenBSD doit maintenant être utilisable sur les systèmes <a class="permalink" href="https://marc.info/?l=openbsd-tech&m=164768935419551&w=2">Apple M1</a> pour davantage de monde (c'est devenu plus facile à configurer)</li>
<li>Les manettes Xbox One<a href="https://marc.info/?l=openbsd-cvs&m=164786514008198&w=2" class="permalink">sont désormais supportées nativement</a></li>
<li>Ajout <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164622142412305&w=2">d'un port openvpn</a> dans /etc/services qui permet de faire référence aux ports TCP/UDP 1194 avec le nom "openvpn"</li>
<li>Nouveau <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164675207028317&w=2">pilote mtw(4)</a> pour les cartes wifi Mediatek</li>
<li>Amélioration <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164682591203530&w=2">de la stabilité d'iwn en itinérance</a></li>
<li>Ajout d'un support initial pour <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164727054105578&w=2">les pilotes iwx 802.11ac</a></li>
<li>Ajout d'un support pour <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164768552018564&w=2">les chaînes 80MHz</a></li>
<li>Ajout d'un support initial <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164768562118583&w=2">802.11ac pour les pilotes iwm</a></li>
<li>Légère amélioration des performances réseau <a class="permalink" href="https://marc.info/?l=openbsd-cvs&m=164658027728696&w=2">en évitant les vérifications IPSEC</a> quand le système n'a pas de tunnel IPSEC</li>
</ul>
<h2>Nouveaux paquets intéressants</h2>
<ul>
<li><a href="https://marc.info/?l=openbsd-ports-cvs&m=164707755911017&w=2" class="permalink">cheese</a>, l'interface GNOME pour la webcam est de retour</li>
<li><a href="https://marc.info/?l=openbsd-ports-cvs&m=164708428202328&w=2" class="permalink">secrets</a>, un gestionnaîre de mots de passes GNOME compatible avec les bases de données au format Keepass</li>
<li><a href="https://marc.info/?l=openbsd-ports-cvs&m=164716036426737&w=2" class="permalink">amused</a>, un lecteur de musique en ligne de commande (développé par op@)</li>
</ul>
</article>
<article id="stable">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Mises à jour pour 7.0-stable (depuis le dernier numéro)</h2>
<ul>
<li><strong>Syspatch</strong>:
<a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.0/common/016_bignum.patch.sig" class="permalink">016</a> (toutes architectures),
<a href="https://ftp.openbsd.org/pub/OpenBSD/patches/7.0/common/017_slaacd.patch.sig" class="permalink">017</a> (toutes architectures)
</li>
<li><strong>Mises à jours de paquets</strong>: mariadb, flac, librenms, thunderbird, firefox-esr, apache-httpd, openssl, php, isc-bind, node, openvpn</li>
</ul>
</article>
<article id="interview">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Questions & Réponses</h2>
<div>
<p>On choisit de garder anonymes les auteurs des questions pour cette section.</p>
<hr />
<p><strong>Question de K.</strong>: Je suis curieux des critères qui vous font choisir OpenBSD devant une distribution linux ou autre selon le contexte</p>
<p><strong>Solene@</strong>: De nombreux critères sont à prendre en compte. Tout d'abord, est-ce que mes logiciels et mon matériel sont compatibles avec OpenBSD. Si non, Linux est une bonne alternative. La plupart du temps, ce sera la seule question à laquelle j'ai besoin de penser, j'installerai OpenBSD si j'ai le choix ET si ça me permet de faire ce que je veux. Une autre question serait celle de l'utilisation du système par plusieurs utilisateurs humains, ai-je envie qu'ils utilisent OpenBSD, est-ce une bonne idée? Enfin, les performances peuvent entre en ligne de compte dans la décision, surtout pour les systèmes embarqués.</p>
<hr />
<p><strong>Question de T.</strong>: J'ai trouvé déroutant mes débuts avec les bases de relayd et comment le configurer avec httpd. J'ai pu faire fonctionner httpd seul mais il me semblait que toutes les fonctionnalités dont j'avais besoin étaient dans relayd, et le manuel supposait que j'avais une quantité d'informations sur la configuration que je ne connaissais pas.</p>
<p><strong>Solene@</strong>: il est vrai que la relation entre httpd et relayd peut être déroutante. Relayd devant httpd peut ajouter quelques mécanismes dans la configuration concernant les entêtes alors que httpd n'a pas de telles fonctions dans sa configuration qui le rendent indépendant de relayd dans certains cas de figure. Cependant, je recommande habituellement d'utiliser un serveur web comme apache ou nginx quand on a besoin de fonctionnalités que httpd n'a pas.</p>
<hr />
<p><strong>Question de T.</strong>: Comment modifier la mage 404 dans httpd? Y a-t-il une autre méthode que de changer le code source et recompiler httpd? </p>
<p><strong>Solene@</strong>: httpd supporte les pages d'erreur personnalisées depuis Octobre 2021 <a href="https://cvsweb.openbsd.org/src/usr.sbin/httpd/httpd.conf.5?rev=1.119&content-type=text/x-cvsweb-markup" class="permalink">par ce commit</a>, tu peux en lire davantage <a href="https://man.openbsd.org/httpd.conf#errdocs" class="permalink">dans la page man</a>.</p>
<hr />
<p><strong>Question de S.</strong>: J'ai toujours été curieux de savoir comment les gens arrivent à jouer à des jeux tels que des mods Half-Life (ex: Couter-Strike); comme si c'était une couche de compatibilité wine ou Linux ou bien existe-t-il des versions de ces jeux pour OpenBSD?</p>
<p><strong>Solene@</strong>: les jeux vidéos fonctionnant sous OpenBSD utilisent diverses technologies. Ils peuvent être exécutés en utilisant une implémentation du moteur de jeu, ce qui signifie que quelqu'un a entièrement réécrit le jeu et vous avez besoin des fichiers du jeu (sons, cartes, graphiques, etc) pour jouer, parfois ce n'est pas tout à fait clair comme si il s'agissait effectivement de code source ouvert ou du code qui aurait fuité, c'est le cas pour Gold Engine utilisé pour Half-Life, c'est pourquoi il n'est pas disponible dans les ports. D'un autre côté, certains jeux sont écrits dans un langage comme Java ou C# qui sont des machines virtuelles et ils ne s'appuient que sur des bibliothèques opensource que l'on a dans le sports, dans ce cas c'est souvent possible d'éxécuter le jeu nativement en remplaçant les bibliothèques d'origine avec celles des ports et utiliser java ou mono pour faire tourner le code.</p>
<hr />
<p><strong>Question de W. O.</strong>: Quells sont les usage spratiques des rdomains?</p>
<p><strong>Solene@</strong>: il y a au moins deux cas de figure auxquels je peux penser pour l'instant. Le premier serait pour un système avec plusieurs connexions à internet que l'on voudrait utiliser indépendemment. Chaque connexion ferait sa vie dans son propre domaine de routage sans se mélanger à l'autre. Une autre application serait avec un VPN, au lieu de l'utiliser comme passerelle par défaut il pourrait se trouver dans un autre rdomain, l'utilisateur pourrait alors choisir au cas par cas des applications devant passer par le VPN ou non.</p>
<hr />
<p><strong>Question de R. S.</strong>: En supposant qu'une utilisateur arrive avec un bagage linux, que doit-il absolument savoir à propos d'OpenBSD?</p>
<p><strong>Solene@</strong>: Je pense que les nouveaux utilisateurs doivent savoir qu'OpenBSD est bien différent des distributions Linux, afin d'éviter les erreurs courantes qui mènent certains à suivre de mauvaises instructions en cherchant de l'aide. De plus, ce serait une bonne introduction d'apprendre l'existence de la FAQ sur le site web et savoir lire les pages man avec efficacité. Bien sûr, commencer par la documentation n'est pas très amusant, mais puisqu'OpenBSD est différent de Linux, je suis convaincue que les nouveaux utilisateurs devraient passer un peu de temps à apprendre à utiliser la documentation.</p>
<hr />
<p><strong>Question de R. S.</strong>: Qu'elle est la nouveauté la plus cool dans la prochaine version?</p>
<p><strong>Solene@</strong>: Je suis pour ma part heureuse de voir le support de la distribution de contenu gzippé avec httpd, mais je doit admettre que les divers changements comme le support d'Apple M1 et les améliorations WiFi sont excitantes.</p>
<hr />
<p><strong>Question de R. S.</strong>: Donne le nom d'une page man inattendue qui à ton avis est incontournable pour les admins.</p>
<p><strong>Solene@</strong>: voici la page man <a href="https://man.openbsd.org/afterboot" class="permalink">afterboot</a>.</p>
<hr />
<p><strong>Question de T.</strong>: Des efforts sur les performances réseau/PF sont-ils en cours? J'utilise OpenBSD comme parefeu, et ça foncitonne bien avec mon matériel et ma connexion internet actuels, mais quand je regarde les tests de référence ça semble nettement derrière Linux et FreeBSD pour cette utilisation.</p>
<p><strong>Solene@</strong>: Il y a du travail actuel pour améliorer les performances de PF afin de le faire utiliser plusieurs CPU à la fois, ce qui donnera de bons résultats à la fin. Cependant on constate régulièrement des étapes majeures et les performances s'améliorent à chaque nouvelle version.</p>
</div>
</article>
<article id="tips">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Astuces shell</h2>
<p>C'est facile d'ajouter l'autocompletion aux commandes dans ksh, cependant elles sont limitées puisqu'elles doivent être évaluées lorsque le shelle démarre.</p>
<p> Dans l'exemple suivant, on peut analyser le fichier <pre>~/.ssk/known_hosts</pre> pour obtenir les noms des domaines et utiliser cette liste pour définir des entrées auto complétées pour certaines commandes:
<pre>
HOSTS_LIST=$(awk '{split($1,a,","); print a[1]}' ~/.ssh/known_hosts)
set -A complete_ssh -- $HOSTS_LIST
set -A complete_ping -- $HOSTS_LIST
set -A complete_sndioctl_1 -- $(sndioctl | cut -d= -f 1)
</pre></p>
<p>Dans cet autre exemple, on autocomplete différemment selon la position du paramètre
<pre>set -A complete_rclone_1 -- ncdu ls copy sync
set -A complete_rclone_2 -- $(rclone listremotes)
</pre>
Ajouter des entrées d'autocompletion est facile mais ksh est évalué en cours d'exécution, c'est poursuoi vous devriez éviter les évaluations qui prennent du temps, et des commandes comme cp ou git ne peuvent pas recevoir beaucoup de completion utiles.</p>
<p>Plus d'informations à propos de cette fonctionnalité peuvent être trouvées <a class="permalink" href="https://man.openbsd.org/ksh#Emacs_editing_mode">dans la page man de ksh</a>.</p>
</article>
<article id="links">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Going further</h2>
<ul>
<li><a class="permalink" href="https://dataswamp.org/~solene/2022-03-15-openbsd-impermanence.html">Reproducible clean $HOME in OpenBSD</a></li>
<li><a class="permalink" href="https://blog.hukadan.org/install-openbsd-on-ssdnodes/">How to install OpenBSD on SSDNODES VPS</a></li>
<li><a class="permalink" href="https://briancallahan.net/blog/20220321.html">I built the new gcobol compiler on OpenBSD</a></li>
<li><a class="permalink" href="https://www.undeadly.org/cgi?action=article;sid=20220319123157">Testing parallel forwarding</a></li>
<li><a class="permalink" href="https://dataswamp.org/~solene/2022-03-21-openbsd-cool-frequency.html">Keep your OpenBSD system cool</a></li>
</ul>
</article>
<article id="artwork">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Oeuvres du moment</h2>
<figure>
<a href="images/artwork-issue8.png">
<picture>
<img src="images/artwork-issue8.png"
alt="Quelques cercles avec des piquants et des yeux ressemblant à des poissons globe, dessinés à la main en noir et blanc." />
</picture>
</a>
<figcaption>"Herd of puff." by <a href="https://bsd.network/@prahou" class="permalink">Tomáš</a></figcaption>
</figure>
</article>
<article id="authors">
<div class="puffies" aria-hidden="true">🐡🐡🐡</div>
<h2>Auteurs</h2>
<p>Solène Rapenne, pamela@ et d'autres personnes qui ont contribué autrement que par git que j'ai pu oublier. Merci à chacun investit et encourageant l'idée!</p>
</article>

View File

@ -6,7 +6,7 @@ tagfirst="2021" # see https://validator.w3.org/feed/docs/error/InvalidTAG.html
# exit if no public issue found
ls ../public/issue-*.html >/dev/null 2>&1
date_updated=$(date +%Y-%m-%dT%TZ)
date_updated=$(env LC_TIME=C TZ=UTC date +%Y-%m-%dT%TZ)
cat <<EOF
<?xml version="1.0" encoding="utf-8"?>
@ -22,11 +22,16 @@ cat <<EOF
<updated>${date_updated}</updated>
EOF
for page in ../public/issue-*.html ; do
for page in $(ls -t ../public/issue-*.html) ; do
issue=$(echo $page | grep -oE "issue\-[0-9]+")
title=$(echo $issue | awk -F '-' '{ print "Issue #"$NF }')
. ./$issue/metadata.sh
tag="$(echo -n ${issue} | sha256)"
if test -f /bsd # OpenBSD
then
tag="$(echo -n ${issue} | sha256)"
else
tag="$(echo -n ${issue} | sha256sum | cut -d ' ' -f 1)"
fi
cat <<EOF
<entry>

View File

@ -20,7 +20,24 @@ fi
DIR=$(basename $1)
DESTFILENAME=$2
CURINODE=$(stat -f "%i" current/)
if test -f /bsd # OpenBSD
then
CURINODE=$(stat -f "%i" current/metadata.sh)
if [ "$testsite" -eq 0 ] && [ "$(stat -f '%i' $DIR/metadata.sh)" -eq "$CURINODE" ]
then
DEST=dev
else
DEST=public
fi
else # assuming linux
CURINODE=$(stat --format="%i" current/metadata.sh)
if [ "$testsite" -eq 0 ] && [ "$(stat --format="%i" $DIR/metadata.sh)" -eq "$CURINODE" ]
then
DEST=dev
else
DEST=public
fi
fi
LNSFX=""
if [ -n "$LN" ]; then
@ -33,19 +50,18 @@ ls $DIR/${LNSFX}*.html 2>&1 >/dev/null || die "no ${LN} html file in $DIR"
. ./${DIR}/metadata.sh
if [ "$testsite" -eq 0 ] && [ "$(stat -f '%i' $DIR)" -eq "$CURINODE" ]
then
DEST=dev
else
DEST=public
fi
if test -z "$DESTFILENAME"
then
DESTFILENAME="../${DEST}/${LNSFX}${DIR}.html"
fi
cat _common/header $DIR/${LNSFX}*html _common/footer > $DESTFILENAME
if [ -n "${LNSFX}" ]; then
cat _common/header $DIR/${LNSFX}*html _common/footer > $DESTFILENAME
else
cat _common/header \
$(ls $DIR/*html | grep "/.*[0-9]_") \
_common/footer > $DESTFILENAME
fi
if echo $DIR | grep issue
then
@ -56,8 +72,14 @@ then
sed -i "s/__TITLE__/issue #${issue}/g" $DESTFILENAME
sed -i "s/__FILENAME__/issue-${issue}.html/" $DESTFILENAME
# replace date
DATETIME="$(date -j -f "%Y-%m-%dT%H:%M:%SZ" "${PUBLISHED_DATE}" +"%Y-%m-%d %H:%M")"
HUMAN_DATE="$(date -j -f "%Y-%m-%dT%H:%M:%SZ" "${PUBLISHED_DATE}" +"%B %e, %Y")"
if test -f /bsd # on OpenBSD
then
DATETIME="$(date -j -f "%Y-%m-%dT%H:%M:%SZ" "${PUBLISHED_DATE}" +"%Y-%m-%d %H:%M")"
HUMAN_DATE="$(date -j -f "%Y-%m-%dT%H:%M:%SZ" "${PUBLISHED_DATE}" +"%B %e, %Y")"
else # assuming Linux
DATETIME="$(env LC_TIME=C TZ=UTC date --date="${PUBLISHED_DATE}" "+%Y-%m-%d %H:%M")"
HUMAN_DATE="$(env LC_TIME=C TZ=UTC date --date="${PUBLISHED_DATE}" "+%B %e, %Y")"
fi
if [ $? -ne 0 ];
then

View File

@ -20,11 +20,19 @@ EOF
# list all pages in site_directory and print last mod time
cd "$2"
find . -name \*.html | cut -d'/' -f2- | while read -r page
find . -name \*.html | cut -d'/' -f2- | sort | while read -r page
do
if test -f /bsd
then
printf '<url><loc>%s</loc><lastmod>%s</lastmod></url>\n' \
"https://${ndd}/${page}"\
"$(date -r $(stat -f %m ${l}) +%Y-%m-%d)"
"$(date -r $(stat -f %m) +%Y-%m-%d)"
else
set -x
printf '<url><loc>%s</loc><lastmod>%s</lastmod></url>\n' \
"https://${ndd}/${page}"\
"$(env LC_TIME=C TZ=UTC date +%Y-%m-%d)"
fi
done
echo "</urlset>"