aboutsummaryrefslogtreecommitdiffstats
path: root/news/husky-base-devel/pkg-install
blob: 74db35e6e9c390dfcc43f577aa9a39b672cbd395 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/news/husky-base-devel/pkg-install,v 1.1 2005-10-26 15:43:45 garga Exp $
#

PKG_PREFIX=${PKG_PREFIX:=/usr/local}
BATCH=${BATCH:=no}
PW=/usr/sbin/pw

ask() {
    local question default answer

    question=$1
    default=$2
    if [ -z "${PACKAGE_BUILDING}" -a x${BATCH} = xno ]; then
        read -p "${question} [${default}]? " answer
    fi
    if [ x${answer} = x ]; then
        answer=${default}
    fi
    echo ${answer}
}

yesno() {
    local question default answer

    question=$1
    default=$2
    while :; do
        answer=$(ask "${question}" "${default}")
        case "${answer}" in
        [Yy]*)  return 0;;
        [Nn]*)  return 1;;
        esac
        echo "Please answer yes or no."
    done
}

if [ x"$2" = xPRE-INSTALL ]; then
    USER=fido
    GROUP=fido
    UID=111
    GID=111

    if ${PW} groupshow "${GROUP}" 2>/dev/null; then
        echo "You already have a group \"${GROUP}\", so I will use it."
    else
        if ${PW} groupadd ${GROUP} -g ${GID}
    then
        echo "Added group \"${GROUP}\"."
    else
        echo "Adding group \"${GROUP}\" failed..."
            echo "Please create it, and try again."
            exit 1
        fi
    fi

    if ${PW} user show "${USER}" 2>/dev/null; then
        echo "You already have a user \"${USER}\", so I will use it."
    else
        if ${PW} useradd ${USER} -u ${UID} -g ${GROUP} -h - \
           -d ${PKG_PREFIX}/fido \
           -c "Fido System"
    then
        echo "Added user \"${USER}\"."
    else
        echo "Adding user \"${USER}\" failed..."
            echo "Please create it, and try again."
            exit 1
        fi
    fi
fi
ports-gnome/commit/russian?h=gnome-3.24&id=b50a2b9b79e9ff43a367da645ce10e8125f02bc8'>Distfile was modified by author. Minor changes.sem2004-08-031-2/+2 * Add prawda 0.3.0, english-Russian translator.sem2004-07-318-0/+423 * Utilize DATADIR macro.osa2004-07-282-17/+17 * Change maintainer's email.krion2004-07-221-1/+1 * Gaim with underclared charsets support for oscar protocol.sem2004-07-173-0/+93 * nagios v 1.1 with Russian language patchessem2004-07-1513-0/+657 * Establish a correct master-slave relationship betweenlinimon2004-06-241-1/+2 * fix ircd-hybrid-7 low-bandwidth DoSeik2004-06-214-2/+24 * Add a new port russian/bogofilter (ru-bogofilter), which isyar2004-06-182-0/+19 * Update to version 3.2.3lofi2004-06-104-6/+174 * Don't remove www/ now that it is created by the system.kris2004-06-093-5/+0 * Update to latest mod_ssl 2.8.18: security fix.lev2004-06-072-4/+3 * Add `www/apache2' port with non-default MPMs to CONFLICTS.lev2004-05-242-0/+4 * Make CONFLICTS more specific: conflicts with apache-[0-9]*, not with apache-*lev2004-05-242-2/+2 * Update to latest, 1.3.31 based, version.lev2004-05-234-124/+20 * Update to latest, 1.3.31 based, version.lev2004-05-234-123/+17 * - Fix typokrion2004-05-212-2/+2 * - Unregister the old UID/GID and register the new one in thekrion2004-05-216-8/+14 * BROKEN: Uses unregistered, out-of-range uidkris2004-05-212-0/+4 * clean up after various repocopieseik2004-05-185-74/+0 * - Fix MASTER_SITESkrion2004-05-172-2/+2 * Move port to better category:vs2004-05-121-1/+0 * Oops. Forgot the language categories.lofi2004-05-079-9/+12 * - remove obsolte ports of gd1 and realativesdinoex2004-05-0510-29031/+0 * - disconnect obsolete ports gd1 and relativesdinoex2004-05-051-1/+0 * - Fix WWW:krion2004-05-041-1/+1 * Update to KDE 3.2.2lofi2004-04-204-40/+22 * - Change maintainer's emailkrion2004-04-162-2/+2 * - Fix MASTER_SITESkrion2004-04-141-2/+1 * Fix LATEST_LINK conflictsmaho2004-04-121-0/+1 * Tidy up whitespace.trevor2004-04-111-2/+2 * Cram into 80 columns by 24 rows.trevor2004-04-111-8/+4 * Chase the glib20 update, and bump all affected ports' PORTREVISIONs.marcus2004-04-051-1/+1 * Remove category pkg/COMMENT files in favour of a COMMENT variable in thekris2004-04-022-1/+2 * SIZEify (maintainer timeout)trevor2004-03-3112-0/+16 * - mark DEPRECATEDdinoex2004-03-301-0/+3 * - use INSTALLS_SHLIBdinoex2004-03-302-5/+1 * Add size data, approved by maintainers.trevor2004-03-214-0/+6 * SIZEifyerwin2004-03-202-0/+2 * - extend CONFLICTSdinoex2004-03-192-1/+11 * Add size data.trevor2004-03-191-0/+1 * E-mail to the maintainer bounced:trevor2004-03-181-1/+1 * bump PORTREVISION for the netmask fixeik2004-03-121-0/+1 * Unbreak slave port by updating to the version 27.3 of the encoding patch.kan2004-03-112-6/+4 * Update to KDE 3.2.1 / QT 3.3.1lofi2004-03-109-4/+59 * Add patch for netmask problems on 64bit machines.lev2004-03-091-0/+113 * Add patch for netmask problems on 64bit machineslev2004-03-092-0/+114 * - Unbreak on alpha, sparc64 and other non-i386 platforms.fjoe2004-03-067-124/+137 * BROKEN on sparc64 as wellkris2004-03-051-2/+2 * - Mark BROKEN, doesn't build with multimedia/xmms version 1.2.10"krion2004-02-241-0/+2 * BROKEN: inconsistent dependencies (linux_base 7.x and 8.x)kris2004-02-171-0/+2 * Use PLIST_FILES (bento-tested, marcus-reviewed).trevor2004-02-068-4/+4 * Use PLIST_FILES.trevor2004-02-064-2/+2 * Update to KDE 3.2.0lofi2004-02-0515-123/+776 * - Unbreak ru-xmms [1].fjoe2004-02-042-1/+5 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-042-0/+2 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-043-1/+3 * Add USE_GETTEXT and bump PORTREVISION.marcus2004-02-045-10/+10 * - Mark BROKEN, does not build with multimedia/xmms version 1.2.9krion2004-02-011-0/+1 * - Fix typo.krion2004-01-311-1/+1 * - Fix plist and bump PORTREVISIONkrion2004-01-312-0/+15 * - SIZEifykrion2004-01-302-0/+4 * The linux-atk port was repo-copied into the accessibility category.trevor2004-01-301-1/+1 * SIZEify.trevor2004-01-304-0/+4 * Now gettext 0.12.1 is gettext-old.trevor2004-01-245-5/+5 * - Maintainer gave maintainership to Alexander Pohoyda (alexander.pohoyda@gmx....clement2004-01-231-1/+1 * Use the SORT macro from bsd.port.mk.trevor2004-01-221-1/+1 * Add mueller-dic 1.2,krion2004-01-176-0/+91 * New port: libcyrillic.demon2004-01-076-0/+78 * Update to version 0.99f7demon2004-01-022-2/+2 * - Fix REINPLACE_CMDkrion2003-12-192-2/+2 * Add ircd-hybrid-ru 7.1,krion2003-12-1526-0/+978 * Add conflicts on xmms-[0-9]*fjoe2003-12-081-0/+2 * New port: ru-xmmsfjoe2003-12-082-0/+19 * - Add WITH_MOTIF knob to enable pixmaps in indicator iconsergei2003-12-062-6/+26 * Update to version 1.3.29+30.19+2.8.16lev2003-11-214-33/+10 * Update to latest version 30.19+1.3.29lev2003-11-214-31/+8 * new Russian-language, i386 Linux binary port of Firebird Web browser,trevor2003-11-204-0/+39 * USE_REINPLACE must be defined before REINPLACE_CMD may be used.trevor2003-11-171-0/+1 * Do not attempt to apply patches for OO 1.0.3 to version 1.1.kan2003-11-141-3/+0 * Use the FIND and XARGS macros introduced in bsd.port.mk 1.391.trevor2003-11-131-1/+1 * Bump PORTREVISION.fjoe2003-11-101-0/+1 * Obey CFLAGS.fjoe2003-11-091-2/+1 * OpenOffice -> OpenOffice.orgmaho2003-11-093-3/+3 * Add OpenOffice.org 1.1 for russian languagemaho2003-11-092-0/+23 * Forgot to change Makefile s..maho2003-11-081-1/+1 * rename openoffice* to openoffice-1.0* accodingly (repo copy).maho2003-11-081-1/+1 * rename openoffice to openoffice-1.0 after repocopymaho2003-11-082-23/+1 * Partial backout. I missed fjoe's commit from a few days ago thatlinimon2003-11-021-4/+0 * Per bento logs, mark broken on 5.x (gcc3.3) and alpha. The distfilelinimon2003-11-021-1/+11 * ports with possibly unreachable MAINTAINERsedwin2003-11-021-1/+1 * Clean up the patch.fjoe2003-10-281-1/+1 * Fix build with gcc 3.3.1.fjoe2003-10-282-3/+4 * Fix typo.lev2003-10-251-1/+1 * [1] Use bsd.port.(pre|post).mklev2003-10-244-720/+732 * utilize SITE_PERLijliao2003-10-246-22/+20 * Fix problem with zombies.lev2003-10-234-1/+52 * Update to version 0.99f6.demon2003-10-192-2/+2 * - Make tarballs fetchablekrion2003-10-181-3/+5 * Update the distribution sites and the maintainer's address.roam2003-10-102-5/+7 * Fix building of suexec with Russian and SLL patches.lev2003-10-092-3/+17 * Fix typo (mod_charest -> mod_charset).fjoe2003-10-082-2/+2 * New port: russian/muttprint (pretty print mail in russian)edwin2003-10-073-0/+160 * new port: russian/koi2koiedwin2003-10-078-0/+629 * Translation update: fix checksum.will2003-09-222-2/+2 * Upgrade to Qt 3.2.1 / KDE 3.1.4. See x11/kde3/Makefile rev 1.64 for details.will2003-09-182-2/+2 * Make portlint-compilant.osa2003-09-032-16/+16 * Fix build on -CURRENT (gcc-3.x)osa2003-09-031-0/+11 * Additional lib->share fixesache2003-08-202-6/+6 * spaces -> tab, += -> =ache2003-08-121-1/+1 * Unbroke (fix path)ache2003-08-121-3/+2 * BROKEN: Broken dependencykris2003-08-071-0/+2 * Update to 1.3.28+30.18+2.8.15lev2003-08-034-36/+28 * Update to 1.3.28+30.18lev2003-08-034-32/+24 * Update to version 0.99f5.demon2003-07-292-2/+2 * Update KDE to the latest official release, KDE 3.1.3lofi2003-07-296-4/+20 * Bump libmm shlib version after recent update of devel/mm.demon2003-07-251-1/+1 * Change my mail to @FreeBSD.orgkrion2003-07-221-1/+1 * Unbreak russian/xxkb by updating MASTER_SITES [1]osa2003-07-163-9/+9 * Fix plist.arved2003-07-082-2/+0 * Add CONFLICTS with other httpd ports: all apache variants and `www/publicfile'lev2003-06-252-0/+17 * Change MAINTAINER field of my ports to lev@FReeBSD.org, my brand-newlev2003-06-172-2/+2 * Fix pkg-plistarved2003-06-164-0/+10 * - Update to 1.10;sobomax2003-05-204-9/+8 * Update to KDE 3.1.2lioux2003-05-204-10/+8 * Bring back from Attic: localized messages and documentation for kofficelioux2003-05-2013-0/+415 * Remove bogus hypen dict.mbr2003-05-141-1/+0 * Add russian ooodict port.mbr2003-05-142-0/+21 * Re-add russian language patch.mbr2003-05-142-2/+2 * Remove Y2K conformance statement URLs.fenner2003-05-091-1/+0 * Update to 3.2arved2003-05-052-3/+3 * Add ksocrat, a KDE russian-english dictionary.arved2003-05-015-0/+55 * Fix breakage caused by old translating patches.mbr2003-04-252-2/+2 * [PATCH] russian/wmcyrx: fix MASTER_SITESedwin2003-04-071-3/+2 * Update to 1.3.27PL30.17+2.8.14.nork2003-04-062-2/+2 * Rejoice, for the long awaited upgrade to kde 3.1.1 is here!alane2003-04-064-26/+68 * Remove manpage directories on deinstallkris2003-04-051-0/+2 * Update Russian Apache + mod_ssl to patchlevel 30.17edwin2003-03-312-3/+3 * Update Russian Apache to patchlevel 30.17edwin2003-03-312-4/+3 * Clear moonlight beckons.ade2003-03-0722-11/+11 * Update MASTER_SITE for port russian/apache13 to lateset mirror listedwin2003-02-241-15/+1 * Update MASTER_SITE for port russian/apache13-modssl to lateset mirror listedwin2003-02-241-29/+10 * Update russian/rus-ispell to more recent version: 0.99f4edwin2003-02-242-11/+11 * Remove RESTRICTED tag for crypto stuff.nork2003-02-231-2/+0 * De-pkg-comment.knu2003-02-2120-10/+10 * De-pkg-comment.knu2003-02-212-1/+1 * De-pkg-comment.knu2003-02-218-4/+4 * update to fortuneru-0.4leeym2003-02-192-12/+7 * Update to 1.15.3.naddy2003-02-173-4/+4 * Upgrade to 0.3.naddy2003-02-155-16/+27 * Remove redundant category 'editors' in slave ports.mbr2003-02-132-2/+2 * Add correct encodings for the russian port.mbr2003-02-132-0/+8 * Upgrade kde-i18n to 3.1. Note that the following modules did not get awill2003-01-294-84/+692 * Add russian language distribution patch.mbr2003-01-222-0/+6 * Mark sites/distfiles with tags to minimize false hitsache2003-01-171-5/+5 * Master site changedache2003-01-172-2/+2 * Upgrade to 1.5ache2003-01-033-4/+6 * Upgrade to 0.99f3ache2003-01-023-6/+4 * Update to version 1.8.3.edwin2002-12-132-2/+9 * Fix maintainers email addressedwin2002-12-131-1/+1 * Typo in pkg-descredwin2002-12-111-1/+1 * spelling-typoedwin2002-12-111-1/+1 * Remove all netscape ports with a vulnerability of JRE.sada2002-11-176-45/+0 * - upgrade mod-ssl to 2.8.12 so that distfile could be fetchable again.sada2002-11-114-10/+107 * Add login classes support for suexecsada2002-11-113-9/+105 * o Rollback PORTCOMMENT modifications while this feature's implementationlioux2002-11-1112-12/+6 * Use PORTCOMMENT in the Makefile, and whack the pkg-comment.adamw2002-11-0712-6/+12 * PERL -> REINPLACEedwin2002-11-041-0/+1 * Fix categories to match dir containing port. bsd.port.mk (and portlint)alane2002-10-30