From 06e5f6050a5dc0154301294419432562fa7e9ec3 Mon Sep 17 00:00:00 2001 From: wiz Date: Wed, 6 Jun 2012 07:39:07 +0000 Subject: Document that new packages should be 'cvs add'ed instead of imported. Per the discussion on tech-pkg. --- doc/guide/files/submit.xml | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) (limited to 'doc/guide') diff --git a/doc/guide/files/submit.xml b/doc/guide/files/submit.xml index 376c4a80930..397eebb17e0 100644 --- a/doc/guide/files/submit.xml +++ b/doc/guide/files/submit.xml @@ -1,4 +1,4 @@ - + Submitting and Committing @@ -95,33 +95,35 @@ -Committing: Importing a package into CVS +Committing: Adding a package to CVS This section is only of interest for pkgsrc developers with write - access to the pkgsrc repository. Please remember that cvs - imports files relative to the current working directory, and that - the pathname that you - give the cvs import command is so that it knows where - to place the files in the repository. Newly created packages should be - imported with a vendor tag of TNF and a release tag of - pkgsrc-base, e.g: - + access to the pkgsrc repository. +When the package is finished, cvs add the files. +Start by adding the directory and then files in the directory. Don't +forget to add the new package to the category's +Makefile. Make sure you don't forget any files; +you can check by running cvs status. An example: -&uprompt; cd .../pkgsrc/category/pkgname -&uprompt; cvs import pkgsrc/category/pkgname TNF pkgsrc-base +&uprompt; cd .../pkgsrc/category +&uprompt; cvs add pkgname +&uprompt; cd pkgname +&uprompt; cvs add DESCR Makefile PLIST distinfo buildlink3.mk patches +&uprompt; cvs add patches/p* +&uprompt; cvs status | less +&uprompt; cd .. +&uprompt; vi Makefile # add SUBDIRS+=pkgname line +&uprompt; cvs commit Makefile pkgname -Remember to move the directory from which you imported out of - the way, or cvs will complain the next time you cvs - update your source tree. Also don't forget to add the new - package to the category's Makefile. - The commit message of the initial import should include part of the DESCR file, so people reading the mailing lists know what the package is/does. -For new packages, cvs import is preferred to cvs - add because the former gets everything with a single command, - and provides a consistent tag. +Also mention the new package in +pkgsrc/doc/CHANGES-20xx. + +Previously, cvs import was suggested, but it was +much easier to get wrong than cvs add. -- cgit v1.2.3