Lines Matching refs:fp
25 + fprintf(fp, "@pkgdep %s-%s-%d-%s", d->product, dist->version, dist->relnumber, platname);
27 + fprintf(fp, "@pkgdep %s-%s-%s", d->product, dist->version, platname);
31 fprintf(fp, "@pkgdep %s", d->product);
41 fprintf(fp, "@exec %s\n", c->command);
45 fprintf(fp, "@unexec %s\n", c->command);
51 fprintf(fp, "@exec /bin/mkdir -p %s\n", file->dst);
52 - fprintf(fp, "@exec /bin/chown %s:%s %s\n", file->user, file->group,
53 + fprintf(fp, "@exec /usr/sbin/chown %s:%s %s\n", file->user, file->group,
55 fprintf(fp, "@exec /bin/chmod %04o %s\n", file->mode, file->dst);
182 + FILE *fp;
186 + fp = popen(command, "r");
187 + if( NULL != fp )
190 + fscanf(fp, "%s .", size);
192 + return pclose(fp);
248 + fputs("Architecture: kfreebsd-i386\n", fp);
250 fputs("Architecture: i386\n", fp);
254 + fputs("Architecture: kfreebsd-amd64\n", fp);
256 + fputs("Architecture: amd64\n", fp);
259 + fputs("Architecture: powerpc\n", fp);
261 fprintf(fp, "Architecture: %s\n", platform->machine);
264 putc('\n', fp);
269 fclose(fp);
288 + if ((fp = fopen(filename, "a")) == NULL)
296 + add_size(fp, filename);
297 + fclose(fp);
390 fclose(fp);
474 + putc('\\', fp);
480 putc('\\', fp);
485 putc(*s, fp);
497 FILE *fp; /* Spec file */
501 fprintf(fp, "Requires: %s", dname);
503 fprintf(fp, "Provides: %s", dname);
505 + fprintf(fp, "Obsoletes: %s", dname);
507 fprintf(fp, "Conflicts: %s", dname);
511 fprintf(fp, "%s\n", dist->descriptions[i]);
513 - fputs("%pre\n", fp);
523 + fputs("%pre\n", fp);
524 fprintf(fp, "%s\n", c->command);
528 - fputs("%post\n", fp);
538 + fputs("%post\n", fp);
539 fprintf(fp, "%s\n", c->command);
550 + fputs("%post\n", fp);
551 fputs("if test \"x$1\" = x1; then\n", fp);
552 fputs(" echo Setting up init scripts...\n", fp);
555 fputs("fi\n", fp);
558 - fputs("%preun\n", fp);
569 + fputs("%preun\n", fp); ++n; /* Need to write %preun here */
570 fputs("if test \"x$1\" = x0; then\n", fp);
571 fputs(" echo Cleaning up init scripts...\n", fp);
581 + fputs("%preun\n", fp);
583 fprintf(fp, "%s\n", c->command);
587 - fputs("%postun\n", fp);
597 + fputs("%postun\n", fp);
598 fprintf(fp, "%s\n", c->command);
602 fputs("%files\n", fp);