www.duckland.org/content/post/2014/09/perl-modules-and-package-management.md
2019-05-27 18:51:29 -05:00

30 lines
1.3 KiB
Markdown

+++
date = "2014-09-18T05:09:12-07:00"
title = "Perl, Modules, and Package Management"
categories = ["sa","arch"]
+++
So, even though I have been starting to
[work with \<back2freebsd-maybe\>]{role="doc"}
[FreeBSD \<freebsd-switch\>]{role="doc"}
[again \<one-step-closer\>]{role="doc"} , I am still running
[ArchLinux](http://www.archlinux.org/) on my workstation.
And I wanted to run a script I wrote a long time ago to support a
[website](http://www.donaldharper.com/) of mine, which I have not
updated in a while. The way I would update the site is by doing some
batch editing of photos, park them in a directory, and then run my
script which pushes the photos to the web server, and then interfaces
with the CMS software to schedule the posts and all is good.
Except the script is in perl, and it uses some modules which are not
main-stream. While perl has the awesome **cpan(1perl)** command to fetch
and install perl modules, I wanted it to be tied into **pacman(8)** . A
quick trip to the [AUR](http://aur.archlinux.org/) turned up the tools
[cpan2aur](https://aur.archlinux.org/packages/perl-cpanplus-dist-arch-git/)
and
[mkaurball](https://aur.archlinux.org/packages/pkgbuild-introspection-git/)
which made it pretty easy to package up and post the the AUR the 9 perl
modules I needed to get my script going and keep track of things with
pacman.
Yeah!