fce0 Adopt an orphaned port project - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Ports & Packages > Installation and Maintenance of FreeBSD Ports or Packages

Installation and Maintenance of FreeBSD Ports or Packages Installing and maintaining the FreeBSD Ports Collection or FreeBSD Packages (i.e. third party software).

Reply
 
Thread Tools Display Modes
  #1  
Old December 10th, 2012, 17:39
lme@'s Avatar
lme@ lme@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Düsseldorf, Germany
Posts: 588
Thanks: 44
Thanked 181 Times in 90 Posts
Default Adopt an orphaned port project

Since the ports tree i now open again, let's start the "Adopt an orphaned port"
project.


=== What is it? ===

According to http://freshports.org/ we currently have 23,940 ports in our tree,
that's really great!
But: There are 4,751 unmaintained ports (approx. 20%), that need _your_ love.



=== What can I do? ===

Adopt one or more ports!

You think it's a lot of work?

That's not necessarily the case, the ports are already there and just need
someone to track the latest upstream versions and someone who keeps the port in
a good shape.


=== How do I know which ports are unmaintained? ===

Thats pretty easy: If you want a list of all unmaintained ports, run

# nawk -F"|" '$6 == "ports@FreeBSD.org" {print $2}' /usr/ports/INDEX-`uname -r | cut -d'.' -f1`

If you want to see which of your installed ports are unmaintained run

a) for pkgng

# pkg query -e "%m == 'ports@FreeBSD.org'" %o

b) for pkg_*

Code:
#!/bin/sh

INDEX="/usr/ports/INDEX-$(uname -r | cut -d'.' -f1)"
MAINTAINER="ports@FreeBSD.org"

grep -h ORIGIN /var/db/pkg/*/+CONTENTS | cut -d: -f2 |
  nawk -v INDEX="$INDEX"  -v MAINTAINER="$MAINTAINER" \
    '{ installed_ports[$0] = 1 }
    END {
    	FS="|"
    	while (getline < INDEX) {
    		if ($6 == MAINTAINER) {
    	   		sub(/\/usr\/ports\//, "", $2)
    			unmaintained_ports[$2] = 1 
    		};
    	}
    		for (port in installed_ports) {
    			if (unmaintained_ports[port]) {
    				print port
    			}
    	}
    }' | sort

=== What can I do then? ===

Pick a port, take a look at the port's Makefile and pkg-descr, see if a new
version is avaiable upstream, check if the WWW line in pkg-descr still points
to a valid site.
Check for broken distfile mirrors, take a look at

http://people.freebsd.org/~ehaupt/di...D.org-bad.html

Find other mirrors, or mirror the distfiles yourself, remove the dead mirrors
from the port's Makefile.

Try to update the port to the new version, add yourself as MAINTAINER in the
Makefile.
If the updated port works, create a patchfile and send a problem
report (PR) with send-pr(1) or via the web interface

http://www.freebsd.org/send-pr.html

All you need then is some patience until some committer grabs the PR and
eventually commits it or ask you to re-work the patch, if there are some issues
left.

h
=== I'd really like to do that, but how do I actually do it? ===

There's very good documentation for porters: The porter's handbook:
http://www.freebsd.org/doc/en/books/porters-handbook/

Don't worry. It's called a book, but it's not a very thick book. Even so it
explains porting very good.
While it's recommended to read the whole book you can also pick the chapters
first that you need to update the port.
If you still have problems or questions then, there are many helpful people at
the ports@FreeBSD.org mailing list.


=== What benefits do I have? ===

Actually there a several benefits:
- You give something back to the community. That's the idea of open source.
- You earn experience with Makefiles, diff(1), patch(1) and other useful tools.
- You and everyone benefits from updated ports
- Your names get added to the list of FreeBSD Contributors
http://www.freebsd.org/doc/en_US.ISO...ors/index.html
- If you create enough PRs and maintain a bunch of ports, it's quite possible that
you get punished with a ports commit bit! \o/
Reply With Quote
The Following 16 Users Say Thank You to lme@ For This Useful Post:
bkouhi (February 22nd, 2013), cpu82 (December 10th, 2012), da1 (May 7th, 2013), fonz (December 10th, 2012), gkontos (December 10th, 2012), mrgz (December 12th, 2012), Mur77 (January 25th, 2013), Nukama (April 23rd, 2013), ondra_knezour (December 10th, 2012), segfault (December 10th, 2012), sk8harddiefast (December 11th, 2012), troberts (April 25th, 2013), UNIXgod (December 10th, 2012), vand777 (December 10th, 2012), vertexSymphony (December 13th, 2012), YZMSQ (April 1st, 2013)
  #2  
Old December 10th, 2012, 17:41
fonz's Avatar
fonz fonz is online now
Moderator
 
Join Date: Nov 2008
Location: Apeldoorn, the Netherlands
Posts: 1,449
Thanks: 369
Thanked 232 Times in 206 Posts
Default

Good initiative. I'm certainly going to have a look.

Fonz
__________________
Ken sent me.
Reply With Quote
  #3  
Old December 10th, 2012, 19:01
gkontos's Avatar
gkontos gkontos is offline
Senior Member
 
Join Date: Dec 2009
Location: Polidendri, GR
Posts: 1,265
Thanks: 42
Thanked 218 Times in 164 Posts
Default

Excellent me too wherever I can help.
__________________
Powered by BareBSD
Reply With Quote
  #4  
Old December 10th, 2012, 19:54
vand777 vand777 is offline
Member
 
Join Date: Jun 2010
Location: London
Posts: 282
Thanks: 29
Thanked 33 Times in 27 Posts
Default

Will have a look as well!
Reply With Quote
  #5  
Old December 10th, 2012, 20:44
cpu82's Avatar
cpu82 cpu82 is online now
Member
 
Join Date: Jul 2011
Location: Granada, ES
Posts: 861
Thanks: 171
Thanked 297 Times in 230 Posts
Default

lme@

Thanks for your announcement.

Good sticky!

Last edited by DutchDaemon; April 18th, 2013 at 16:15.
Reply With Quote
  #6  
Old December 11th, 2012, 14:45
jackp jackp is offline
Junior Member
 
Join Date: Nov 2012
Posts: 40
Thanks: 5
Thanked 4 Times in 4 Posts
Default

I've had my eye on a couple of neglected ports -- when things at work wind down for the holidays, I'll have a go at updating them.
Reply With Quote
  #7  
Old April 18th, 2013, 14:49
gnumonk gnumonk is offline
Junior Member
 
Join Date: Aug 2011
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for sharing this info, I have seen some of them which I used daily using git, but I see those are poiting to old link or dead link. I will probably take those.

But I have a question, since most of the projects were moved to git, how to versioning them, I mean what will be on PORTVERSION?

--
gnumonk

Last edited by fonz; April 18th, 2013 at 15:22. Reason: No space before punctuation: http://forums.freebsd.org/showthread.php?t=18043#Punctuation
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Project Question (ZFS, OS X and SAN) maverix General 9 June 1st, 2012 07:40
An Odd Project (HP Pavillion) JohnCMcD Mobile Computing 2 August 6th, 2011 03:10
Another New Funded Project admin News & Announcements 0 October 25th, 2009 00:10
New Funded Project admin News & Announcements 0 October 25th, 2009 00:10
Removing orphaned packages GullibleJones Installation and Maintenance of FreeBSD Ports or Packages 4 November 19th, 2008 22:01


All times are GMT +1. The time now is 13:18.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0