After having problems creating the pkg-plist of Imgseek, I consulted with Andrew and I asked him how does he create that file?
He answered me the following:
He issued the following command to the two directories (imgseek-0.8.4 and 0.8.6)
#diff -rq imgSeek-0.8.* | grep \^Only
Output:
=Only in imgSeek-0.8.4: debian
=Only in imgSeek-0.8.6/imgSeekLib: ImageDB.py
=Only in imgSeek-0.8.4/imgSeekLib: ImgDB.py
=Only in imgSeek-0.8.6/imgSeekLib: imgseek_pt_BR.qm
=Only in imgSeek-0.8.6/imgSeekLib: jpegloader-win.cpp
=Only in imgSeek-0.8.6/imgSeekLib: jpegloader.cpp
=Only in imgSeek-0.8.6/imgSeekLib: jpegloader.h
=Only in imgSeek-0.8.6/imgSeekLib: sqlitedb.py
=Only in imgSeek-0.8.4/imgSeekLib: tdict.py
That command shows what files appeared or disappeared from the the old version to the new version. In this case ImageDB.py changed to ImgDB.py. So that change should be included in the pkg-plist.
From the output, he also sees file imgseek_pt_BR.qm. A quick look into setup.py file(this file you can find it after you untar imgseek-0.8.6.tar.bz2), he noticed that the file will be installed in share/imgseek. That is another addition to the pkg-plist.
After that, he issues this command:
#make install package && make deinstall find /usr/local -iname \*imgseek\*
With the output of that command, he finished creating the pkg-plist. One important note from him is that this way of creating the pkg-plist is not a perfect method. In my case, this a good starting point when I will try to update the next port.
Finally, he mentioned these following links which can help me in this process of updating a port:
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/contributing-ports/index.html
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/contributing/index.html
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/problem-reports/index.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/dev-model/index.html
A quick look at the freshport site and I can see that my port is up-to-date
These are my steps and notes to adopt/update a FreeBSD port.
Subscribe to:
Post Comments (Atom)
About Me
- Alfredo
- I am a FreeBSD fan
No comments:
Post a Comment