2 static const char rcsid[] =
7 * FreeBSD install - a package for the installation and maintainance
8 * of non-core utilities.
13 * This is the create module.
21 static char Options[] = "YNOhvf:p:P:c:d:i:I:k:K:r:t:X:D:m:s:";
29 char *PostInstall = NULL;
30 char *DeInstall = NULL;
31 char *PostDeInstall = NULL;
32 char *Contents = NULL;
34 char *ExcludeFrom = NULL;
37 char PlayPen[FILENAME_MAX];
41 static void usage __P((void));
44 main(int argc, char **argv)
50 while ((ch = getopt(argc, argv, Options)) != -1)
101 PostDeInstall = optarg;
109 strcpy(PlayPen, optarg);
113 ExcludeFrom = optarg;
141 /* Get all the remaining package names, if any */
145 /* If no packages, yelp */
147 warnx("missing package name"), usage();
150 warnx("only one package name allowed ('%s' extraneous)", start[1]),
152 if (!pkg_perform(start)) {
154 warnx("package creation failed");
164 fprintf(stderr, "%s\n%s\n%s\n%s\n%s\n",
165 "usage: pkg_create [-YNOhv] [-P pkgs] [-p prefix] [-f contents] [-i iscript]",
166 " [-I piscript] [-k dscript] [-K pdscript] [-r rscript] ",
167 " [-t template] [-X excludefile] [-D displayfile] ",
168 " [-m mtreefile] -c comment -d description -f packlist ",