~bt/barf

1571909ad9a7d6af9c2c99181358d81a17b72ca6 — Bradley Taunt a month ago a73d946
New post about simple setup for running barf on OpenBSD
7 files changed, 190 insertions(+), 7 deletions(-)

M Makefile
M README.md
M build/atom.xml
M build/index.html
A build/openbsd/index.html
M build/posts.tsv
A posts/openbsd.md
M Makefile => Makefile +1 -1
@@ 1,5 1,5 @@
build:
	./barf
	sh ./barf_openbsd
	rsync -r public/ build/public

clean:

M README.md => README.md +2 -1
@@ 41,7 41,8 @@ include support for both OpenBSD and MacOS out-of-the-box.

## OpenBSD

Tutorial instructions for OpenBSD coming soon...
Please refer to the [main tutorial on setting up barf on
OpenBSD](https://barf.bt.ht/openbsd)

- coreutils
- gcc

M build/atom.xml => build/atom.xml +21 -2
@@ 2,11 2,30 @@
<feed xmlns="http://www.w3.org/2005/Atom">
	<title></title>
	<link href="https://barf.bt.ht/atom.xml" rel="self" />
	<updated>2023-05-15T13:51:52Z</updated>
	<updated>2023-08-12T13:49:55Z</updated>
	<author>
		<name>Bradley Taunt</name>
	</author>
	<id>https://barf.bt.ht,2023-01-04:default-atom-feed/</id>
	<id>https://barf.bt.ht,2023-08-12:default-atom-feed/</id>
	<entry>
		<title>Running `barf` on OpenBSD</title>
		<content type="html">&lt;h1&gt;Running &lt;code&gt;barf&lt;/code&gt; on OpenBSD&lt;/h1&gt;
&lt;p&gt;2023-08-12&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;barf&lt;/code&gt; project was built on Linux and was catered towards Linux users. The core of the project will remain focused on Linux/GNU tools, but I also need to support OpenBSD since that is my personal operating system of choice.&lt;/p&gt;
&lt;h2&gt;Download Packages&lt;/h2&gt;
&lt;p&gt;Along with your Markdown parser of choice (&lt;code&gt;barf&lt;/code&gt; assumes you will be using my version of &lt;a href=&quot;https://git.sr.ht/~bt/smu&quot;&gt;smu&lt;/a&gt;) you will also need to install the required packages on your OpenBSD system:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;doas pkg_add rsync coreutils gsed cmake gcc
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then ensure that your Makefile calls the proper &lt;code&gt;barf_openbsd&lt;/code&gt; file:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;build:
	sh ./barf_openbsd
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;After that, everything should work perfectly fine!&lt;/p&gt;</content>
		<link href="https://barf.bt.ht/openbsd"/>
		<id>https://barf.bt.ht/openbsd</id>
		<updated>2023-08-12T10:00:00Z</updated>
		<published>2023-08-12T10:00:00Z</published>
	</entry>
	<entry>
		<title>Markdown Examples in barf</title>
		<content type="html">&lt;h1&gt;Markdown Examples in barf&lt;/h1&gt;

M build/index.html => build/index.html +6 -3
@@ 127,9 127,12 @@
<p>Blogs Are Really Fun</p>
</blockquote>
<hr />
<span class='created'>2023-03-07 &mdash; <a href="dark-mode/">Supporting Basic Dark Mode</a></span>
<span class='created'>2023-01-18 &mdash; <a href="macos/">Running `barf` on MacOS</a></span>
<span class='created'>2023-01-05 &mdash; <a href="markdown-examples/">Markdown Examples in barf</a></span>
<ul>
<li>2023-08-12 <br> <a href="openbsd/">Running `barf` on OpenBSD</a></li><br>
<li>2023-03-07 <br> <a href="dark-mode/">Supporting Basic Dark Mode</a></li><br>
<li>2023-01-18 <br> <a href="macos/">Running `barf` on MacOS</a></li><br>
<li>2023-01-05 <br> <a href="markdown-examples/">Markdown Examples in barf</a></li><br>
</ul>
<footer role="contentinfo">
    <span><a href="#">↑ Back to Top</a></span><br><br>
    <small>

A build/openbsd/index.html => build/openbsd/index.html +137 -0
@@ 0,0 1,137 @@
<!doctype html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="color-scheme" content="dark light">
	<link rel="icon" href="data:,">
	<title>Running `barf` on OpenBSD</title>
	<link href="https://barf.bt.ht/atom.xml" type="application/atom+xml" rel="alternate" title="Atom feed for blog posts" />
	<style>
		* {
			box-sizing: border-box;
		}
		body {
			font-family: sans-serif;
			line-height: 1.45;
			margin: 0 auto;
			max-width: 45rem;
			padding: 0 15px;
		}
		hr {
			background-color: grey;
			border: 0;
			height: 1px;
			margin: 2rem 0;
		}
		nav {
			margin: 2rem 0 0;
		}
		main {
			hyphens: auto;
		}
		main p {
			margin: 1rem;
		}
		h1,h2,h3,h4 {
			margin: 2rem 0 0;
		}
		h1 {
			margin-bottom: 0.5rem;
		}
		h1 + p {
			margin: 0 0 1rem;
		}
		span.created {
			display: block;
			margin: 4px 15px;
		}
		img {
			border: 1px solid lightgrey;
			height: auto;
			max-width: 100%;
			width: auto;
		}
		blockquote {
			border: 1px solid;
			border-left: 6px solid;
			margin: 2rem 0;
			padding: 10px;
		}
		blockquote p {
			margin: 0;
		}
		figure {
			margin: 2rem 0;
		}
		figcaption {
			color: slategrey;
		}
		code {
			border: 1px solid;
			padding: 0.1rem 0.3rem;
			tab-size: 4;
		}
		pre {
			border: 1px solid;
		}
		pre code {
			border: 0;
			display: block;
			overflow-x: auto;
			padding: 0.3rem 0.6rem;
		}
		table {
			border-collapse: collapse;
			margin: 2rem 0;
			text-align: left;
			width: 100%;
		}
		tr {
			border-bottom: 1px solid lightgrey;
		}
		tr:nth-of-type(odd) td {
			background-color: #f8f8f8;
		}
		th,td {
			padding: 6px;
		}
		footer {
			border-top: 1px dashed grey;
			margin: 2rem 0;
			padding: 1rem 15px;
		}
		@supports (color-scheme: dark light) {
			@media screen and (prefers-color-scheme: dark) {
				a:link {color: #9e9eff;}
				a:visited {color: #d0adf0;}
				a:active {color: red;}
			}
		}
	</style>
</head>

<nav>
	<a href="/">Home</a><span> | </span><a href="/about">About</a><span> | </span><a href="/websites">Websites</a><span> | </span><a href="https://git.sr.ht/~bt/barf">Source Code</a>
</nav>

<main>
<h1>Running <code>barf</code> on OpenBSD</h1>
<p>2023-08-12</p>
<p>The <code>barf</code> project was built on Linux and was catered towards Linux users. The core of the project will remain focused on Linux/GNU tools, but I also need to support OpenBSD since that is my personal operating system of choice.</p>
<h2>Download Packages</h2>
<p>Along with your Markdown parser of choice (<code>barf</code> assumes you will be using my version of <a href="https://git.sr.ht/~bt/smu">smu</a>) you will also need to install the required packages on your OpenBSD system:</p>
<pre><code>doas pkg_add rsync coreutils gsed cmake gcc
</code></pre>
<p>Then ensure that your Makefile calls the proper <code>barf_openbsd</code> file:</p>
<pre><code>build:
	sh ./barf_openbsd
</code></pre>
<p>After that, everything should work perfectly fine!</p>
<footer role="contentinfo">
    <span><a href="#">↑ Back to Top</a></span><br><br>
    <small>
        Built with <a href="https://git.sr.ht/~bt/barf">barf</a>. <br>
        The <a href="https://git.sr.ht/~bt/barf">code for this site</a> is <a href="https://git.sr.ht/~bt/barf/tree/master/item/LICENSE">MIT</a>.
    </small>
</footer>
\ No newline at end of file

M build/posts.tsv => build/posts.tsv +1 -0
@@ 1,3 1,4 @@
posts/openbsd.md	Running `barf` on OpenBSD		
posts/markdown-examples.md	Markdown Examples in barf		
posts/macos.md	Running `barf` on MacOS		
posts/dark-mode.md	Supporting Basic Dark Mode		

A posts/openbsd.md => posts/openbsd.md +22 -0
@@ 0,0 1,22 @@
# Running `barf` on OpenBSD

2023-08-12

The `barf` project was built on Linux and was catered towards Linux users. The core of the project will remain focused on Linux/GNU tools, but I also need to support OpenBSD since that is my personal operating system of choice.

## Download Packages

Along with your Markdown parser of choice (`barf` assumes you will be using my version of [smu](https://git.sr.ht/~bt/smu)) you will also need to install the required packages on your OpenBSD system:

```
doas pkg_add rsync coreutils gsed cmake gcc
```

Then ensure that your Makefile calls the proper `barf_openbsd` file:

```
build:
	sh ./barf_openbsd
```

After that, everything should work perfectly fine!