=> Bootstrap dependency digest>=20010302: found digest-20080510 => Bootstrap dependency fetch-[0-9]*: found fetch-1.7 => Checksum SHA1 OK for trn-4.0-test76.tar.gz => Checksum RMD160 OK for trn-4.0-test76.tar.gz ===> Installing dependencies for trn-4.76nb3 ========================================================================== The supported build options for trn are: trn-inn trn-nntpclnt The currently selected options are: trn-nntpclnt You can select which build options to use by setting PKG_DEFAULT_OPTIONS or the following variable. Its current value is shown: PKG_OPTIONS.trn (not defined) ========================================================================== => Build dependency bison>=1.0: found bison-2.5nb1 => Build dependency checkperms>=1.1: found checkperms-1.11 => Full dependency nntpclnt>=1.6.1: found nntpclnt-1.6.1nb6 => Full dependency perl>=5.0: found perl-5.14.2 ===> Overriding tools for trn-4.76nb3 ===> Extracting for trn-4.76nb3 ===> Patching for trn-4.76nb3 => Applying pkgsrc patches for trn-4.76nb3 ===> Creating toolchain wrappers for trn-4.76nb3 ===> Configuring for trn-4.76nb3 => Substituting "pipe2" in filter.c => Checking for portability problems in extracted files Beginning of configuration questions for trn. Checking echo to see how to suppress newlines... ...using -n. The star should be here-->* First let's make sure your kit is complete. Checking... Looks good... This installation shell script will examine your system and ask you questions to determine how the trn package should be installed. If you get stuck on a question, you may use a ! shell escape to start a subshell or execute a command. Many of the questions will have default answers in square brackets; typing carriage return will give you the default. On some of the questions which ask for file or directory names you are allowed to use the ~name construct to specify the login directory belonging to "name", even if you don't have a shell which knows about that. Questions where this is allowed will be marked "(~name ok)". [Type carriage return to continue] The prompter used in this script allows you to use shell variables and backticks in your answers. You may use $1, $2, etc... to refer to the words in the default answer, as if the default line was a set of arguments given to a script shell. This means you may also use $* to repeat the whole default line, so you do not have to re-type everything to add something to the default. Everytime there is a substitution, you will have to confirm. If there is an error (e.g. an unmatched backtick), the default answer will remain unchanged and you will be prompted again. If you are in a hurry, you may run 'Configure -d'. This will bypass nearly all the questions and use the computed defaults (or the previous answers if there was already a config.sh file). Type 'Configure -h' for a list of options. You may also start interactively and then answer '& -d' at any prompt to turn on the non-interactive behaviour for the remainder of the execution. [Type carriage return to continue] Much effort has been expended to ensure that this shell script will run on any Unix system. If despite that it blows up on yours, your best bet is to edit Configure and run it again. If you can't run Configure for some reason, you'll have to generate a config.sh file by hand. Whatever problems you have, let me (trn-workers@lists.sourceforge.net) know how I blew it. This installation script affects things in two ways: 1) it may do direct variable substitutions on some of the files included in this kit. 2) it builds a config.h file for inclusion in C programs. You may edit any of these files as the need arises after running this script. If you make a mistake on a question, there is no easy way to back up to it currently. The easiest thing to do is to edit config.sh and rerun all the SH files. Configure will offer to let you do this before it runs the SH files. [Type carriage return to continue] Locating common programs... awk is in /tmp/pkgsrc/news/trn/work/.tools/bin/awk. cat is in /tmp/pkgsrc/news/trn/work/.tools/bin/cat. comm is in /usr/bin/comm. cp is in /tmp/pkgsrc/news/trn/work/.tools/bin/cp. echo is in /tmp/pkgsrc/news/trn/work/.tools/bin/echo. expr is in /tmp/pkgsrc/news/trn/work/.tools/bin/expr. grep is in /tmp/pkgsrc/news/trn/work/.tools/bin/grep. mkdir is in /tmp/pkgsrc/news/trn/work/.tools/bin/mkdir. mv is in /tmp/pkgsrc/news/trn/work/.tools/bin/mv. rm is in /tmp/pkgsrc/news/trn/work/.tools/bin/rm. sed is in /tmp/pkgsrc/news/trn/work/.tools/bin/sed. sleep is in /bin/sleep. sort is in /tmp/pkgsrc/news/trn/work/.tools/bin/sort. tail is in /tmp/pkgsrc/news/trn/work/.tools/bin/tail. touch is in /tmp/pkgsrc/news/trn/work/.tools/bin/touch. tr is in /tmp/pkgsrc/news/trn/work/.tools/bin/tr. uniq is in /usr/bin/uniq. Don't worry if any of the following aren't found... I don't see Mcc out there, offhand. ar is in /usr/bin/ar. basename is in /tmp/pkgsrc/news/trn/work/.tools/bin/basename. bash is in /bin/bash. bison is in /usr/pkg/bin/bison. I don't see byacc out there, either. cpp is in /tmp/pkgsrc/news/trn/work/.wrapper/bin/cpp. I don't see csh out there, either. date is in /tmp/pkgsrc/news/trn/work/.tools/bin/date. diff is in /tmp/pkgsrc/news/trn/work/.tools/bin/diff. I don't see ed out there, either. egrep is in /tmp/pkgsrc/news/trn/work/.tools/bin/egrep. inews is in /usr/pkg/bin/inews. I don't see ispell out there, either. I don't see ksh out there, either. less is in /usr/bin/less. ln is in /tmp/pkgsrc/news/trn/work/.tools/bin/ln. I don't see mail out there, either. more is in /bin/more. nm is in /usr/bin/nm. nroff is in /usr/bin/nroff. perl is in /usr/pkg/bin/perl. pg is in /usr/bin/pg. I don't see pgp out there, either. I don't see rmail out there, either. sendmail is in /usr/sbin/sendmail. I don't see smail out there, either. I don't see spell out there, either. test is in /tmp/pkgsrc/news/trn/work/.tools/bin/test. uname is in /bin/uname. I don't see uuname out there, either. vi is in /usr/bin/vi. who is in /usr/bin/who. Using the test built into your sh. Checking compatibility between /tmp/pkgsrc/news/trn/work/.tools/bin/echo and builtin echo (if any)... They are compatible. In fact, they may be identical. Symbolic links are supported. Good, your tr supports [:lower:] and [:upper:] to convert case. Using [:upper:] and [:lower:] to convert case. First time through, eh? I have some defaults handy for some systems that need some extra help getting the Configure answers right: aix_rs dgux hpux isc_3_2_3 sco_3 sunos altos486 domainos i386 linux sco_3_2_4 svr4 convexos dynix irix mc6000 sco_xenix darwin freebsd isc_2_2_1 mips sgi dec_osf1 hp9000_800 isc_3_2_2 next solaris_2 You may give one or more space-separated answers, or "none" if appropriate. A well-behaved OS will have no hints, so answering "none" or just "Policy" is a good thing. DO NOT give a wrong version. Which of these apply, if any? [linux] Configure uses the operating system name and version to set some defaults. The default value is probably right if the name rings a bell. Otherwise, since spelling matters for me, either accept the default or answer "none" to leave it blank. Operating system name? [linux] Trn is capable of accessing both local and remote news sources at the same time, including multiple servers and private local directories. NOTE: if your system doesn't have a local news spool, choose "nntp" to make the Configuration easier -- it won't affect the access of private local directories. Select the news spool support ("local", "nntp", or "both"): [nntp] Trn supports the new generic user-authentication extension to NNTP that is available in INN 1.5 and NNTP 1.5.12. Do you want to use generic user-authentication? [n] Trn needs a default news source to access when it is started without a custom list. This can either be the name of a server or a filename from which to read the server's name. Enter your news server name or a file name (~name ok): [/usr/pkg/etc/nntp/server] (You'll need to create /usr/pkg/etc/nntp/server before trn will work.) I can set things up so that your shell scripts and binaries are more portable, at what may be a noticable cost in performance. In particular, if you ask to be portable, the following happens: 1) Shell scripts will rely on the PATH variable rather than using the paths derived above. 2) ~username interpretations will be done at run time rather than by Configure. 3) The system name will be determined at run time, if at all possible. Do you expect to run these scripts and binaries on multiple machines? [n] By default, trn will be installed in /usr/pkg/bin, manual pages under /usr/pkg/man, etc..., i.e. with /usr/pkg as prefix for all installation directories. Typically set to /usr/local, but you may choose /usr if you wish to install trn among your system binaries. If you wish to have binaries under /bin but manual pages under /usr/local/man, that's ok: you will be prompted separately for each of the installation directories, the prefix being only used to set the defaults. Installation prefix to use? (~name ok) [/usr/pkg] If the default server doesn't support XGTITLE (to send newsgroup descriptions) you may want to install a copy of the newsgroups file on your local machine and periodically update it (by whatever means you choose). If so, select where you want to put it. If not, enter "none". Where is the newsgroups file? ("none" ok) (~name ok) [none] Trn comes with an inews that can post via the same NNTP connection that the newsreader is using, provided the newsreader (such as trn) supports this. If you don't want to install this inews, enter "none". Pathname where trn's inews will reside? ("none" ok) (~name ok) [none] Which inews should be used for posting articles? (~name ok) [/usr/pkg/bin/inews] If there are any database files (either overview or thread files) available on your local system for accessing the *default* news server (/usr/pkg/etc/nntp/server), enter the appropriate path here for each hierarchy. If you want to use a remote database, enter "remote". If you want to disable a database, enter "none". Enter a local directory for overview files, "remote", or "none": (~name ok) [remote] Enter a local directory for thread files, "remote", or "none": (~name ok) [remote] Trn has two distinct operating modes (selected by the -x option): traditional rn and threaded rn. If you like, trn will check the first letter of the command name and default to threaded mode (-x) if it is a 't', or run as traditional rn (+x) if it isn't (this lets you install as both trn and rn, linked together). Otherwise, you can install trn to default to threaded rn (-x) no matter what its name is. Do you want trn to default to -x, regardless of name? [n] When the -X option is specified, trn will set the default command for starting a newsgroup to be the selector. Should the -X option be on by default for trn (not rn)? [y] Pathname where the public executables will reside? (~name ok) [/usr/pkg/bin] To install the files in this directory, a few strange systems need to use a different directory name to get the files there. What directory name should be used for the install? (~name ok) [/tmp/pkgsrc/news/trn/work/.destdir/usr/pkg/bin] Directory /tmp/pkgsrc/news/trn/work/.destdir/usr/pkg/bin doesn't exist. Use that name anyway? [y] Distribution groups are the things you use on the Distribution line to limit where an article will go to. You are likely to be a member of several distribution groups, such as organization, city, state, province, country, continent, etc. For example, Los Angeles has the distribution code "la", New Jersey has the code "nj", and Europe has the code "eunet". The categories you will be asked are: local organization (Could be just one machine or a cluster or an office) organization att, dec, kgb, ... city la, ny, mosc, ... state/province ca, nj, bc, ... multi-state region pnw, ne, ... country usa, can, rok, whatever continent na (North America), asia, etc. Use 'none' for any distributions you don't have. What is the distribution code for your local organization? [none] What is the distribution code for your organization? [none] What is the distribution code for your city? [none] What is the distribution code for your state/province? [none] What is the distribution code for your multi-state region? [none] What is the distribution code for your country? [none] What is the distribution code for your continent? [none] If you have any other distribution groups you will need to edit Pnews to add them. Hmm... Looks kind of like a Version 7 system, but we'll see... Congratulations. You aren't running Eunice. It's not Xenix... Nor is it Venix... System manual is in /usr/share/man/man1. Use which C compiler? [cc] Checking for GNU cc in disguise and/or its version number... You are using GNU cc 4.5.2. Hmm... Doesn't look like a MIPS system. Figuring out local hostname... Maybe "hostname" will work... Your local hostname was computed to be 'x86_64-linux'. Trn wants to know what hostname your news software (usually inews) puts into the "From" line of news articles posted from this machine. If you get this wrong the ownership checks done for Cancel, Supersede and automatic followup-selection (the -p option) will fail to recognize articles as belonging to the poster. (NOTE: trn does NOT create "From" lines when posting news or sending mail as this is the job of your news/mail software, not trn.) Your options: 1. Choose a static hostname, such as your domain (which will match your sub-domain machines as well) and enter it here. 2. Specify just the domain portion (by starting the name with a '.') and your machine name will be computed at runtime and this domain appended to the end. 3. Enter just a '.' to have the machine AND domain computed at runtime. 4. Specify a filename (by starting the name with '/' or '~') and the name will be read from the file and processed using the above rules. If the file read fails, the machine and domain will be computed at runtime. What hostname appears on the From line of this machine's postings? [/usr/pkg/etc/nntp/domainname] Reading the hostname from /usr/pkg/etc/nntp/domainname. (You'll need to create /usr/pkg/etc/nntp/domainname on this machine.) Trn has manual pages available in source form. If you don't want the manual sources installed, answer 'none'. Where do the manual pages (source) go? (~name ok) [/usr/pkg/share/man/man1] What directory name should be used for the install? (~name ok) [/tmp/pkgsrc/news/trn/work/.destdir/usr/pkg/man/man1] Directory /tmp/pkgsrc/news/trn/work/.destdir/usr/pkg/man/man1 doesn't exist. Use that name anyway? [y] There are some auxiliary files for trn that need to be put into a private library directory that is accessible by everyone. Pathname where the private library files will reside? (~name ok) [/usr/pkg/share/trn] To install the files in this directory, a few strange systems need to use a different directory name to get the files there. What directory name should be used for the install? (~name ok) [/tmp/pkgsrc/news/trn/work/.destdir/usr/pkg/share/trn] Directory /tmp/pkgsrc/news/trn/work/.destdir/usr/pkg/share/trn doesn't exist. Use that name anyway? [y] Pnews has a "Check spelling" option that will allow you to correct spelling errors if you have ispell or vspell, or will simply list possible spelling errors via spell if you don't (assuming you have a spell program!). If you enter "none" it will default to the non-interactive "spell". Which interactive speller should we use? ("none" ok) [none] What options should be used? ("none" ok) [none] Trn can use a global mime capabilites file to determine what program to run to handle various mime parts. The recommended file is mimecap in /usr/local/etc, but if you have metamail installed, you can use its mailcap file instead. Trn has a sample mimecap file, if you need to install one. If you reply "none" there will be no global defaults. What global mimecap file should trn use? ("none" ok) (~name ok) [/usr/pkg/etc/mimecap] File /usr/pkg/etc/mimecap doesn't exist. Use that name anyway? [y] Please type the name of your organization as you want it to appear on the Organization line of outgoing articles. (It's nice if this also specifies your location. Your city name is probably sufficient if well known.) For example: University of Southern North Dakota, Hoople You may also put the name of a file, as long as it begins with a slash. For example: /etc/organization Organization: [/usr/pkg/etc/nntp/organization] Trn has integrated strn's score files and its scan mode as an optional feature. You might not want to include it if you are concerned about trn's size or have no interest in score files. Do you want to include strn's scan and score features? [y] Now, how can we feed standard input to your C preprocessor... Maybe "cc -E" will work... Nope...maybe "cc -E -" will work... Yup, it does. Some systems have incompatible or broken versions of libraries. Among the directories listed in the question below, please remove any you know not to be holding relevant libraries, and add any that are needed. Say "none" for none. Directories to use for library searches? [/usr/pkg/lib /usr/lib] On some systems, shared libraries may be available. Answer 'none' if you want to suppress searching of shared libraries for the remaining of this configuration. What is the file extension used for shared libraries? [so] Checking for optional libraries... No -lmalloc. Found -lresolv (shared). No -lsocket. No -lnet. No -lhdb. No -lbbn. No -lstr. No -lnls. Found -lnsl (shared). No -lintl. No -lx. No -lucb. Some versions of Unix support shared libraries, which make executables smaller but make load time slightly longer. On some systems, mostly System V Release 3's, the shared library is included by putting the option "-lc_s" as the last thing on the cc command line when linking. Other systems use shared libraries by default. There may be other libraries needed to compile trn on your machine as well. If your system needs the "-lc_s" option, include it here. Include any other special libraries here as well. Say "none" for none. Any additional libraries? [none] Some C compilers have problems with their optimizers. By default, trn compiles with the -O flag to use the optimizer. Alternately, you might want to use the symbolic debugger, which uses the -g flag (on traditional Unix systems). Either flag can be specified here. To use neither flag, specify the word "none". What optimizer/debugger flag should be used? [-O] Your C compiler may want other flags. For this question you should include -I/whatever and -DWHATEVER flags and any other flags used by the C compiler, but you should NOT include libraries or ld flags like -lwhatever. If you want trn to honor its debug switch, you should include -DDEBUG here. To use no flags, specify the word "none". Any additional cc flags? [-I/usr/local/include] Let me guess what the preprocessor flags are... They appear to be: -I/usr/local/include Your C linker may need flags. For this question you should include -L/whatever and any other flags used by the C linker, but you should NOT include libraries like -lwhatever. Make sure you include the appropriate -L/path flags if your C linker does not normally search all of the directories you specified above, namely /usr/pkg/lib /usr/lib To use no flags, specify the word "none". Any additional ld flags (NOT including libraries)? [none] Checking your choice of C compiler and flags for coherency... #include main() { printf("Ok\n"); exit(0); } OK, that should do. Checking whether your compiler can handle __attribute__ ... Your C compiler supports __attribute__. Does your /etc/passwd file keep full names in Berkeley/V7 format (name first thing after ':' in GCOS field)? In that case, a typical entry in the password file looks like this: guest:**paswword**:10:100:Mister Guest User:/usr/users:/bin/sh ^^^^^^^^^^^^^^^^^ Berkeley/V7 format for full name in /etc/passwd? [y] Checking for GNU C Library... gnulibc.c: In function 'main': gnulibc.c:6:5: warning: incompatible implicit declaration of built-in function 'exit' You are using the GNU C Library nm probably won't work on the GNU C Library. I can use /usr/bin/nm to extract the symbols from your C libraries. This is a time consuming task which may generate huge output on the disk (up to 3 megabytes) but that should make the symbols extraction faster. The alternative is to skip the 'nm' extraction part and to compile a small test program instead to determine whether each symbol is present. If you have a fast C compiler and/or if your 'nm' output cannot be parsed, this may be the best solution. You probably shouldn't let me use 'nm' if you are using the GNU C Library. Shall I use /usr/bin/nm to extract C symbols from the libraries? [n] gettimeofday() found. ftime() found. getwd() found. getcwd() found. gethostname() found. getdomainname() found. getpwent() found. Terminfo library found. Trn normally looks in the environment variables NEWSORG and ORGANIZATION for an overriding organization name. However, if your operating system reserves the environment variable ORGANIZATION for other purposes, you will want to ignore it and only have trn check for NEWSORG. Should ORGANIZATION be ignored? [n] Most mailers can deliver mail to addresses of the INTERNET persuasion, such as user@host.edu. Some older mailers, however, require the complete path to the destination to be specified in the address. Does your mailer understand INTERNET addresses? [y] Computing filename position in cpp output for #include directives... Your cpp writes the filename in the third field of the line. No ndir library found, but you have readdir() so we'll use that. memcmp() found. memcpy() found. memset() found. mkdir() found. Many systems keep their news in a private directory, or have a non-superuser in charge of administering news. (If you don't have such a user, take the default answer.) I need the login name (not directory) which is used for news administration. News admin login? [news] Checking for buffering of stdout to terminal. Observe the following characters as they are printed out, to see whether they print out all at once, or with a 1 second pause between each of them. If they print out one by one, you don't have buffering. If they print together (after about a 5 second pause), you do have buffering. [Type return to start printing the test characters] abcde Would you like to see that again? [n] Do you have buffering (printed all at once)? [y] No jobs library found. (That's okay, we all have our faults.) Checking to see if your C compiler groks the void type... Yup, it does. rdchk() NOT found. rename() found. sigblock() found. sighold() found. strcasecmp() found. Using instead of . strchr() found. strftime() found. strstr() found. No trace of 'union wait' in ... Your wait() should be happy with a plain 'int' pointer. vfork() found. Some systems have problems with vfork(). Do you want to use it? [n] Ok, we won't use vfork(). Let's see whether you can use the WIFEXITED(status) macro and its friends with status declared as 'int status'... Great! Looks like we can use the WIFxxx macros. What is the default editor on your system? [/usr/bin/vi] found. Your directory entries are struct dirent. I need the full pathname of the program used to deliver mail on your system. A typical answer would be /usr/lib/sendmail or /bin/rmail, but you may choose any other program, as long as it can be fed from standard input and will honour any user-supplied headers. Mail transport agent to be used? [/usr/sbin/sendmail] In the following question, you may use %~ to represent the user's home directory, and %L to represent a users name. In which file is yet-to-be-read mail spooled? (~name ok) [/var/mail/%L] In saving articles, trn wants to differentiate between saving to mailbox format files and normal files. It does this by examining the first character of the file in question. On most systems the first line starts with "From ...", so the first character is an F. Other systems use magic cookies like control codes between articles, so one of those would be first. For example, MMDF messages are separated with lines of four control-A's (you may specify one as ^A, i.e. caret A). What's the first character of a mailbox file? [F] What pager is used on your system? [/usr/bin/less] Give the full path name of the shell most people like to use on your system. This will be used by trn whenever the user wants to get a shell escape (for instance) and is not necessarily the same as the shell you are currently using (/bin/sh). Preferred shell to be used? (~name ok) [/bin/bash] Root uid = 0 You have void (*signal())(). Which compiler compiler (yacc or bison -y) shall I use? [yacc] Hmm... Your C pre-processor defines the following symbols: __STDC__ __linux__ __unix __unix__ linux unix tcsetattr() found. You have POSIX termios.h... good! found. found. NOT found. found. NOT found. Testing to see if we should include , or both. I'm now running the test program...... Succeeded with -DI_TIME -DI_SYSTIME -DS_TIMEVAL We'll include . We'll include . found. found. found. End of configuration questions. Creating config.sh... Doing variable substitutions on .SH files... Extracting makedir (with variable substitutions) Extracting Makefile (with variable substitutions) Extracting Pnews (with variable substitutions) Extracting Policy.sh (with variable substitutions) Extracting Rnmail (with variable substitutions) Extracting Speller (with variable substitutions) Extracting access.def (with variable substitutions) Extracting config.h (with variable substitutions) Extracting HelpFiles/config/environment (with variable substitutions) Extracting filexp (with variable substitutions) Extracting makedepend (with variable substitutions) Extracting mbox.saver (with variable substitutions) Extracting mkpro (with variable substitutions) Extracting mktd (with variable substitutions) Extracting myinstall (with variable substitutions) Extracting norm.saver (with variable substitutions) If you compile trn on a different machine or from a different object directory, copy the Policy.sh file from this object directory to the new one before you run Configure -- this will help you with most of the policy defaults. Now type "make".