Sync Ports to Packages

mfv mfv at bway.net
Sat Jul 18 15:14:49 UTC 2015


> On Fri, 2015-07-17 at 15:21 Lowell Gilbert
> <freebsd-questions-local at be-well.ilk.org> wrote:
>
>mfv <mfv at bway.net> writes:
>
>> Am trying to write a script to keep my packages and ports in sync but
>> have not been able to find a local file in the package system that
>> contains the revision number of my last upgrade.  Once that number is
>> obtained it is possible to sync the port tree.
>>
>> The following script extracts the build number from the appropriate
>> server but needs Internet access:
>>
>> https://gist.github.com/reedacartwright/8622973baf89b263a6d7
>>
>> Is it possible to extract the same revision number from a local file?
>
>svnversion(1)
>_______________________________________________
>freebsd-questions at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to
>"freebsd-questions-unsubscribe at freebsd.org"

Hello Lowell,

Thanks for your reply.  It appears I did not explain my issue clearly.
The idea is to have both ports and packages synced to the same
build/revision number.

To do this I first upgrade the binaries by invoking "pkg upgrade".
Then, after using a web browser to check out the appropriate beefy
server, I identify the build number of that upgrade.  Finally, I
update the local ports tree by running "svnup ports -n <build#>".
When finished, the ports and packages are synced.

It is possible to identify the revision number of the ports tree by
using "svnup ports -n".  But I can not find a command among the pkg
tools that provides the equivalent number by accessing local files.

Cheers ...

Marek


More information about the freebsd-questions mailing list