Aller au contenu

Désinstaller ProFTPD


Mandeo

Messages recommandés

Oulah !

Merci pour cette réponse hyper rapide ! :inpactforce:

Je teste ça une fois que ma machine a fini de booter.

Tiens, à votre avis, pourquoi mon PC ne cdétecte pas l'OS au lancement ?

C'est un peu chiant je suis obligé de lancer Debian via la disquette de démarrage que j'avais créée au cas où et ça prend 10 minutes...

EDIT :

Bon, à première vue, ça n'a pas fonctionné :keskidit: :

make: *** No rule to make target `uninstall'.  Stop.

Lien vers le commentaire
Partager sur d’autres sites

y a pas un ptit script uninstall.sh ou qqchose dans le genre ?

ls -harl sur le racine de ton repertoire d'install si tu as des pb pour le trouver...

Ben tu n'as tout simplement pas configure lilo, il sufffit de booter comme tu fais d'habitude et d'installer/configurer lilo correctement, et tu auras linux/windaube au choix des le debut.

Lien vers le commentaire
Partager sur d’autres sites

J'ai pas trouvé de truc qui ressemble de près ou de loin à un script de désinstallation...

Voilà ce que la commande m'a donné :

mandeo@debian:~/proftpd-1.2.10rc1$ ls -harl

total 1.5M

drwxr-xr-x    2 500      500          4.0k Jul  8 15:45 utils

-rw-r--r--    1 500      500            0 Aug  3  2000 stamp-h.in

-rw-r--r--    1 root    root          10 Jul  8 15:45 stamp-h

drwxr-xr-x    2 500      500          4.0k Jul  8 15:45 src

drwxr-xr-x    2 500      500          4.0k Apr 28 19:59 sample-configurations

-rw-r--r--    1 500      500          10k Apr 28 19:52 proftpd.spec

drwxr-xr-x    2 500      500          4.0k Jul  8 15:45 modules

drwxr-xr-x    3 500      500          4.0k Jul  8 15:45 lib

-rwxr-xr-x    1 500      500          5.5k Oct 18  1998 install-sh

drwxr-xr-x    2 500      500          4.0k Jul  8 15:45 include

drwxr-xr-x    5 500      500          4.0k Apr 28 19:59 doc

drwxr-xr-x    3 500      500          4.0k Apr 28 19:59 contrib

-rw-r--r--    1 500      500          39k Mar 25 20:16 configure.in

-rwxr-xr-x    1 500      500          493k Mar 25 20:22 configure

-rwxr-xr-x    1 500      500          29k Jan 17 23:57 config.sub

-rwxr-xr-x    1 root    root          47k Jul  8 15:45 config.status

-rw-r--r--    1 root    root        178k Jul  8 15:45 config.log

-rw-r--r--    1 500      500          17k Apr  7 01:17 config.h.in

-rw-r--r--    1 root    root          18k Jul  8 13:01 config.h

-rwxr--r--    1 500      500          40k Jan  5  2003 config.guess

-rw-r--r--    1 500      500          3.9k Mar 22  2003 aclocal.m4

-rw-r--r--    1 500      500          2.9k Dec 15  2002 acconfig.h

-rw-r--r--    1 500      500          2.4k Apr 28 19:43 RELEASE_NOTES

-rw-r--r--    1 500      500          3.2k Aug 28  2003 README.ports

-rw-r--r--    1 500      500          4.0k Feb 27 20:27 README.modules

-rw-r--r--    1 500      500          3.8k May 29  2003 README.cygwin

-rw-r--r--    1 500      500          1.8k Mar  8 21:32 README.controls

-rw-r--r--    1 500      500          1.1k Jan 30 04:09 README.classes

-rw-r--r--    1 500      500          2.2k Jan  9  2003 README.capabilities

-rw-r--r--    1 500      500          1.5k Feb 28  2000 README.Unixware

-rw-r--r--    1 500      500          1.7k Sep 12  1999 README.Solaris2.5x

-rw-r--r--    1 500      500          5.1k Apr  3  2003 README.PAM

-rw-r--r--    1 500      500          3.7k Mar 14  2003 README.LDAP

-rw-r--r--    1 500      500          2.7k Feb 19 19:22 README.IPv6

-rw-r--r--    1 500      500          1.1k Oct 28  2003 README.FreeBSD

-rw-r--r--    1 500      500          5.3k Oct 24  2002 README.AIX

-rw-r--r--    1 500      500          4.3k Apr 28 19:43 README

-rw-r--r--    1 500      500          68k Apr 28 19:52 NEWS

-rw-r--r--    1 500      500          5.1k Feb 13 00:46 Makefile.in

-rw-r--r--    1 root    root        5.0k Jul  8 15:45 Makefile

-rw-r--r--    1 500      500          2.6k Feb 17 03:15 Make.rules.in

-rw-r--r--    1 root    root        2.8k Jul  8 15:45 Make.rules

-rw-r--r--    1 500      500          25k Apr 24  2003 INSTALL

-rw-r--r--    1 500      500          326k Apr 28 19:54 ChangeLog

-rw-r--r--    1 500      500          2.1k Oct  8  2002 CREDITS

-rw-r--r--    1 500      500          18k Oct 18  1998 COPYING

drwxr-xr-x    4 mandeo  mandeo      4.0k Jul  8 12:58 ..

drwxr-xr-x  10 500      500          4.0k Jul  8 15:45 .

mandeo@debian:~/proftpd-1.2.10rc1$

Pour ce qui est de lilo, bien évidemment que je l'ai installé, mais ça fonctionne pas le BIOS me dit toujours un truc du genre "pas d'OS détecté" et j'ai pas windows sur cette machine...

Lien vers le commentaire
Partager sur d’autres sites

Makefile.in :

CC=@CC@
@SET_MAKE@

top_srcdir=@top_srcdir@
srcdir=@srcdir@
VPATH=@srcdir@
DESTDIR=

include ./Make.rules

DIRS=@ADDL_DIRS@
INSTALL=@INSTALL@
EXEEXT=@EXEEXT@

INSTALL_USER=@install_user@
INSTALL_GROUP=@install_group@

INSTALL_BIN=$(INSTALL) @INSTALL_STRIP@ -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0755
INSTALL_SBIN=$(INSTALL) @INSTALL_STRIP@ -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0755
INSTALL_MAN=$(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0644

BUILD_PROFTPD_OBJS=$(BUILD_OBJS) $(BUILD_MODULE_OBJS)
BUILD_BIN=proftpd$(EXEEXT) ftpcount$(EXEEXT) ftpdctl$(EXEEXT) ftpshut$(EXEEXT) ftptop$(EXEEXT) ftpwho$(EXEEXT)


all: $(BUILD_BIN)

include/buildstamp.h:
echo \#define BUILD_STAMP \"`date`\" >include/buildstamp.h

dummy:

lib: include/buildstamp.h dummy
cd lib/ && $(MAKE) lib

src: include/buildstamp.h dummy
cd src/ && $(MAKE) src

modules: include/buildstamp.h dummy
cd modules/ && $(MAKE) modules

utils: include/buildstamp.h dummy
cd utils/ && $(MAKE) utils

dirs: include/buildstamp.h dummy
@dirs="$(DIRS)"; \
for dir in $$dirs; do \
 if [ -d "$$dir" ]; then cd $$dir/ && $(MAKE); fi; \
done


proftpd$(EXEEXT): lib src modules dirs
$(CC) $(LDFLAGS) -o $@ $(BUILD_PROFTPD_OBJS) $(LIBS)

ftpcount$(EXEEXT): utils
$(CC) $(LDFLAGS) -o $@ $(BUILD_FTPCOUNT_OBJS)

ftpdctl$(EXEEXT): src
$(CC) $(LDFLAGS) -o $@ $(BUILD_FTPDCTL_OBJS) $(LIBS)

ftpshut$(EXEEXT): utils
$(CC) $(LDFLAGS) -o $@ $(BUILD_FTPSHUT_OBJS)

ftptop$(EXEEXT): lib utils
$(CC) $(LDFLAGS) -o $@ $(BUILD_FTPTOP_OBJS) $(CURSES_LIBS) -lsupp

ftpwho$(EXEEXT): lib utils
$(CC) $(LDFLAGS) -o $@ $(BUILD_FTPWHO_OBJS) -lsupp


# BSD install -d doesn't work, so ...
$(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(rundir) $(DESTDIR)$(bindir) $(DESTDIR)$(sbindir) $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8:
@if [ ! -d $@ ]; then \
 mkdir -p $@; \
 chown $(INSTALL_USER):$(INSTALL_GROUP) $@; \
 chmod 0755 $@; \
fi

install-proftpd: proftpd $(DESTDIR)$(localstatedir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(rundir) $(DESTDIR)$(sbindir)
$(INSTALL_SBIN) proftpd $(DESTDIR)$(sbindir)/proftpd
if [ -f $(DESTDIR)$(sbindir)/in.proftpd ]; then \
 rm -f $(DESTDIR)$(sbindir)/in.proftpd; \
fi
ln -s proftpd $(DESTDIR)$(sbindir)/in.proftpd
-chown -h $(INSTALL_USER):$(INSTALL_GROUP) $(DESTDIR)$(sbindir)/in.proftpd

install-utils: $(DESTDIR)$(sbindir) $(DESTDIR)$(bindir)
$(INSTALL_BIN)  ftpcount $(DESTDIR)$(bindir)/ftpcount
$(INSTALL_BIN)  ftpdctl  $(DESTDIR)$(bindir)/ftpdctl
$(INSTALL_SBIN) ftpshut  $(DESTDIR)$(sbindir)/ftpshut
$(INSTALL_BIN)  ftptop   $(DESTDIR)$(bindir)/ftptop
$(INSTALL_BIN)  ftpwho   $(DESTDIR)$(bindir)/ftpwho

install-conf: $(DESTDIR)$(sysconfdir)
if [ ! -f $(DESTDIR)$(sysconfdir)/proftpd.conf ]; then \
 $(INSTALL) -o $(INSTALL_USER) -g $(INSTALL_GROUP) -m 0644 \
            $(top_srcdir)/sample-configurations/basic.conf \
                   $(DESTDIR)$(sysconfdir)/proftpd.conf; \
fi

install-man: $(DESTDIR)$(mandir) $(DESTDIR)$(mandir)/man1 $(DESTDIR)$(mandir)/man5 $(DESTDIR)$(mandir)/man8
$(INSTALL_MAN) $(top_srcdir)/src/ftpdctl.8    $(DESTDIR)$(mandir)/man8
$(INSTALL_MAN) $(top_srcdir)/src/proftpd.8    $(DESTDIR)$(mandir)/man8
$(INSTALL_MAN) $(top_srcdir)/utils/ftpshut.8  $(DESTDIR)$(mandir)/man8
$(INSTALL_MAN) $(top_srcdir)/utils/ftpcount.1 $(DESTDIR)$(mandir)/man1
$(INSTALL_MAN) $(top_srcdir)/utils/ftptop.1   $(DESTDIR)$(mandir)/man1
$(INSTALL_MAN) $(top_srcdir)/utils/ftpwho.1   $(DESTDIR)$(mandir)/man1
$(INSTALL_MAN) $(top_srcdir)/src/xferlog.5    $(DESTDIR)$(mandir)/man5

install-all: install-proftpd install-utils install-conf install-man

install: all install-all


depend:
cd src/     && $(MAKE) depend
cd modules/ && $(MAKE) depend
cd lib/     && $(MAKE) depend
cd utils/   && $(MAKE) depend


clean:
cd src/     && $(MAKE) clean
cd modules/ && $(MAKE) clean
cd lib/     && $(MAKE) clean
cd utils/   && $(MAKE) clean

@dirs="$(DIRS)"; \
for dir in $$dirs; do \
 if [ -d "$$dir" ]; then cd $$dir/ && $(MAKE) clean; fi; \
done

rm -f include/buildstamp.h
rm -f $(BUILD_BIN)

distclean: clean
rm -f Makefile Make.modules Make.rules \
      lib/Makefile modules/Makefile src/Makefile utils/Makefile
rm -f config.h config.status config.cache config.log stamp-h
rm -f include/buildstamp.h

dist: depend distclean
rm -rf `find . -name CVS`
rm -rf `find . -name .cvsignore`
rm -rf `find . -name core`
rm -rf `find . -name '*~'`
rm -fr `find . -name '*.bak'`
# RPM needs this in the top-level directory in order to support '-t'
mv -f contrib/dist/rpm/proftpd.spec .
# Other users may need to execute these scripts
chmod a+x configure config.sub install-sh modules/glue.sh


# autoheader might not change config.h.in, so touch a stamp file.
${srcdir}/config.h.in: stamp-h.in
${srcdir}/stamp-h.in: configure.in acconfig.h
cd ${srcdir} && autoheader
echo timestamp > ${srcdir}/stamp-h.in

config.h: stamp-h
stamp-h: config.h.in config.status
./config.status

${srcdir}/configure: configure.in
cd ${srcdir} && autoconf

Make.rules: Make.rules.in config.status
./config.status

Makefile: Makefile.in Make.rules.in config.status
./config.status

config.status: configure
./config.status --recheck

install-sh :

#! /bin/sh
#
# install - install a program, script, or datafile
# This comes from X11R5 (mit/util/scripts/install.sh).
#
# Copyright 1991 by the Massachusetts Institute of Technology
#
# Permission to use, copy, modify, distribute, and sell this software and its
# documentation for any purpose is hereby granted without fee, provided that
# the above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of M.I.T. not be used in advertising or
# publicity pertaining to distribution of the software without specific,
# written prior permission.  M.I.T. makes no representations about the
# suitability of this software for any purpose.  It is provided "as is"
# without express or implied warranty.
#
# Calling this script install-sh is preferred over install.sh, to prevent
# `make' implicit rules from creating a file called install from it
# when there is no Makefile.
#
# This script is compatible with the BSD install script, but was written
# from scratch.  It can only install one file at a time, a restriction
# shared with many OS's install programs.


# set DOITPROG to echo to test this script

# Don't use :- since 4.3BSD and earlier shells don't like it.
doit="${DOITPROG-}"


# put in absolute paths if you don't have them in your path; or use env. vars.

mvprog="${MVPROG-mv}"
cpprog="${CPPROG-cp}"
chmodprog="${CHMODPROG-chmod}"
chownprog="${CHOWNPROG-chown}"
chgrpprog="${CHGRPPROG-chgrp}"
stripprog="${STRIPPROG-strip}"
rmprog="${RMPROG-rm}"
mkdirprog="${MKDIRPROG-mkdir}"

transformbasename=""
transform_arg=""
instcmd="$mvprog"
chmodcmd="$chmodprog 0755"
chowncmd=""
chgrpcmd=""
stripcmd=""
rmcmd="$rmprog -f"
mvcmd="$mvprog"
src=""
dst=""
dir_arg=""

while [ x"$1" != x ]; do
   case $1 in
-c) instcmd="$cpprog"
    shift
    continue;;

-d) dir_arg=true
    shift
    continue;;

-m) chmodcmd="$chmodprog $2"
    shift
    shift
    continue;;

-o) chowncmd="$chownprog $2"
    shift
    shift
    continue;;

-g) chgrpcmd="$chgrpprog $2"
    shift
    shift
    continue;;

-s) stripcmd="$stripprog"
    shift
    continue;;

-t=*) transformarg=`echo $1 | sed 's/-t=//'`
    shift
    continue;;

-b=*) transformbasename=`echo $1 | sed 's/-b=//'`
    shift
    continue;;

*)  if [ x"$src" = x ]
    then
 src=$1
    else
 # this colon is to work around a 386BSD /bin/sh bug
 :
 dst=$1
    fi
    shift
    continue;;
   esac
done

if [ x"$src" = x ]
then
echo "install:	no input file specified"
exit 1
else
true
fi

if [ x"$dir_arg" != x ]; then
dst=$src
src=""

if [ -d $dst ]; then
 instcmd=:
else
 instcmd=mkdir
fi
else

# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
# might cause directories to be created, which would be especially bad 
# if $src (and thus $dsttmp) contains '*'.

if [ -f $src -o -d $src ]
then
 true
else
 echo "install:  $src does not exist"
 exit 1
fi

if [ x"$dst" = x ]
then
 echo "install:	no destination specified"
 exit 1
else
 true
fi

# If destination is a directory, append the input filename; if your system
# does not like double slashes in filenames, you may need to add some logic

if [ -d $dst ]
then
 dst="$dst"/`basename $src`
else
 true
fi
fi

## this sed command emulates the dirname command
dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`

# Make sure that the destination directory exists.
#  this part is taken from Noah Friedman's mkinstalldirs script

# Skip lots of stat calls in the usual case.
if [ ! -d "$dstdir" ]; then
defaultIFS='	
'
IFS="${IFS-${defaultIFS}}"

oIFS="${IFS}"
# Some sh's can't handle IFS=/ for some reason.
IFS='%'
set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
IFS="${oIFS}"

pathcomp=''

while [ $# -ne 0 ]; do
pathcomp="${pathcomp}${1}"
shift

if [ ! -d "${pathcomp}" ];
       then
 $mkdirprog "${pathcomp}"
else
 true
fi

pathcomp="${pathcomp}/"
done
fi

if [ x"$dir_arg" != x ]
then
$doit $instcmd $dst &&

if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true; fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true; fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true; fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true; fi
else

# If we're going to rename the final executable, determine the name now.

if [ x"$transformarg" = x ] 
then
 dstfile=`basename $dst`
else
 dstfile=`basename $dst $transformbasename | 
 	sed $transformarg`$transformbasename
fi

# don't allow the sed command to completely eliminate the filename

if [ x"$dstfile" = x ] 
then
 dstfile=`basename $dst`
else
 true
fi

# Make a temp file name in the proper directory.

dsttmp=$dstdir/#inst.$$#

# Move or copy the file name to the temp name

$doit $instcmd $src $dsttmp &&

trap "rm -f ${dsttmp}" 0 &&

# and set any options; do chmod last to preserve setuid bits

# If any of these fail, we abort the whole thing.  If we want to
# ignore errors from any of these, just make sure not to ignore
# errors from the above "$doit $instcmd $src $dsttmp" command.

if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi &&
if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi &&
if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi &&
if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi &&

# Now rename the file to the real destination.

$doit $rmcmd -f $dstdir/$dstfile &&
$doit $mvcmd $dsttmp $dstdir/$dstfile 

fi &&


exit 0

Lien vers le commentaire
Partager sur d’autres sites

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

×
×
  • Créer...