resurrect deprecated port print/pnm2ppa

Miroslav Lachman 000.fbsd at quip.cz
Wed Feb 24 23:00:28 UTC 2016


Jason Helfman wrote on 02/20/2016 07:20:
> On Thu, Feb 18, 2016 at 1:51 AM, Miroslav Lachman <000.fbsd at quip.cz> wrote:
>> Greg Lewis wrote on 02/22/2015 23:58:
>>>
>>> On Sun, Feb 15, 2015 at 08:08:57PM +0100, Miroslav Lachman wrote:
>>>>
>>>> Can somebody resurrect deprecated port print/pnm2ppa?
>>>>
>>>> It was deleted from the tree as "Unmaintained since 2001" but it is
>>>> (was) still working fine and I am still using my good old printer HP
>>>> DeskJet 710C through USB to LPT convertor (usb:/dev/ulpt0) with CUPS.
>>>
>>>
>>> Why don't you submit a PR with the resurrected port in it and yourself as
>>> the maintainer?  I'll take a look at it if you do.  It seems like all it
>>> really needs is someone to commit to maintaining it.
>>
>>
>> Hi Greg,
>> after more than a year I resurerected pnm2ppa port for my home use
>> yesterday. It was lot of work for me - I did some port many years ago and
>> converting this old port to staging was not easy for me. I tried to build it
>> with "poudrier testport" and it succeeded.
>>
>> ====> Compressing man pages (compress-man)
>> ===========================================================================
>> ====> Running Q/A tests (stage-qa)
>> ====> Checking for pkg-plist issues (check-plist)
>> ===> Parsing plist
>> ===> Checking for items in STAGEDIR missing from pkg-plist
>> ===> Checking for items in pkg-plist which are not in STAGEDIR
>> ===> No pkg-plist issues found (check-plist)
>> ====>> Status for build print/pnm2ppa: package
>> ====>> Checking for staging violations... done
>> =======================<phase: package        >============================
>> ===>  Building package for pnm2ppa-1.13_2
>> ===========================================================================
>> ====>> Status for build print/pnm2ppa: install-mtree
>> =======================<phase: install-mtree  >============================
>> ===========================================================================
>> ====>> Status for build print/pnm2ppa: install
>> ====>> Recording filesystem state for preinst... done
>> =======================<phase: install        >============================
>> ===>  Installing for pnm2ppa-1.13_2
>> ===>   pnm2ppa-1.13_2 depends on executable: enscript - found
>> ===>  Checking if pnm2ppa already installed
>> ===>   Registering installation for pnm2ppa-1.13_2
>> [10_2_amd64-default] Installing pnm2ppa-1.13_2...
>> To configure your printcap to print either ascii"
>> or Postscript files, add the following lines to your"
>> /etc/printcap file"
>>
>>          lp|ascii|unix:\\"
>>                  :lp=/dev/lpt0:\\"
>>                  :sd=/var/spool/lpd:\\"
>>                  :if=/usr/local/bin/asciippafilter:\\"
>>                  :mx#0:\\"
>>                  :sh:"
>>
>>          ps:\\"
>>                  :lp=/dev/lpt0:\\"
>>                  :sd=/var/spool/ps:\\"
>>                  :if=/usr/local/bin/ppafilter:\\"
>>                  :mx#0:\\"
>>                  :sh:"
>>
>> ===========================================================================
>> ====>> Status for build print/pnm2ppa: deinstall
>> ====>> Checking shared library dependencies
>>   0x0000000000000001 (NEEDED)             Shared library: [libc.so.7]
>>   0x0000000000000001 (NEEDED)             Shared library: [libm.so.5]
>> =======================<phase: deinstall      >============================
>> ===>  Deinstalling for pnm2ppa
>> ===>   Deinstalling pnm2ppa-1.13_2
>> Updating database digests format: ...... done
>> Checking integrity... done (0 conflicting)
>> Deinstallation has been requested for the following 1 packages (of 0
>> packages in the universe):
>>
>> Installed packages to be REMOVED:
>>          pnm2ppa-1.13_2
>>
>> The operation will free 653 KiB.
>> [10_2_amd64-default] [1/1] Deinstalling pnm2ppa-1.13_2...
>> [10_2_amd64-default] [1/1] Deleting files for pnm2ppa-1.13_2: ...... done
>> ===========================================================================
>> ====>> Checking for extra files and directories
>> [00:00:09] ====>> Installing from package
>> [10_2_amd64-default] Installing pnm2ppa-1.13_2...
>> [10_2_amd64-default] Extracting pnm2ppa-1.13_2: ...... done
>> Message from pnm2ppa-1.13_2:
>> To configure your printcap to print either ascii"
>> or Postscript files, add the following lines to your"
>> /etc/printcap file"
>>
>>          lp|ascii|unix:\\"
>>                  :lp=/dev/lpt0:\\"
>>                  :sd=/var/spool/lpd:\\"
>>                  :if=/usr/local/bin/asciippafilter:\\"
>>                  :mx#0:\\"
>>                  :sh:"
>>
>>          ps:\\"
>>                  :lp=/dev/lpt0:\\"
>>                  :sd=/var/spool/ps:\\"
>>                  :if=/usr/local/bin/ppafilter:\\"
>>                  :mx#0:\\"
>>                  :sh:"
>> [00:00:09] ====>> Cleaning up
>> ===>  Cleaning for pnm2ppa-1.13_2
>> [00:00:09] ====>> Deinstalling package
>> Updating database digests format: . done
>> Checking integrity... done (0 conflicting)
>> Deinstallation has been requested for the following 1 packages (of 0
>> packages in the universe):
>>
>> Installed packages to be REMOVED:
>>          pnm2ppa-1.13_2
>>
>> The operation will free 653 KiB.
>> [10_2_amd64-default] [1/1] Deinstalling pnm2ppa-1.13_2...
>> [10_2_amd64-default] [1/1] Deleting files for pnm2ppa-1.13_2: ...... done
>> build of print/pnm2ppa ended at Wed Feb 17 23:44:50 CET 2016
>> build time: 00:00:08
>> [00:00:09] ====>> Cleaning up
>> 10_2_amd64-default: removed
>> 10_2_amd64-default-n: removed
>> [00:00:09] ====>> Umounting file systems
>>
>> Usr: 7.140s  Krnl: 3.021s  Totl: 0:10.91s  CPU: 93.1%  swppd: 0  I/O:
>> 71+9636
>>
>>
>> So what to do next to submit PR in right format?
>> Should I send diff against old port version, or full archive of new version?
>>
>> Miroslav Lachman
>
> Yes, a diff against the port prior to it's deletion. This way it can
> be resurrected and patched.

I submitted PR with patch:
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=207468

Thank you!

Miroslav Lachman


More information about the freebsd-ports mailing list